plot_cohort_data.RdFunction which takes the output of the cohort() function and displays selected results
plot_cohort_data( cohort_data = list(), benchmark = "slide_prev", flag_output = 1 )
| cohort_data | List of form output by cohort() function |
|---|---|
| benchmark | Benchmark type to output ("slide_prev", "pcr_prev", "clin_inc" or "test_inc") |
| flag_output | Integer indicating how to present data (1: all clusters, 2: average over all clusters) |
Takes in a data frame of the form output by the cohort() function, calculates selected benchmark values and plots them on a graph