CoOL_7_prevalence_and_mean_risk_plot {CoOL} | R Documentation |
Prevalence and mean risk plot
Description
This plot shows the prevalence and mean risk for each sub-group. Its distribution hits at sub-groups with great public health potential.
Usage
CoOL_7_prevalence_and_mean_risk_plot(
risk_contributions,
sub_groups,
title = "Prevalence and mean risk\nof sub-groups",
y_max = NA,
restore_par_options = TRUE,
colours = NA,
ipw = 1
)
Arguments
risk_contributions |
The risk contributions. |
sub_groups |
The vector with the sub-groups. |
title |
The title of the plot. |
y_max |
Fix the axis of the risk of the outcome. |
restore_par_options |
Restore par options. |
colours |
Colours indicating each sub-group. |
ipw |
a vector of weights per observation to allow for inverse probability of censoring weighting to correct for selection bias |
Value
A plot with prevalence and mean risks by sub-groups.
References
Rieckmann, Dworzynski, Arras, Lapuschkin, Samek, Arah, Rod, Ekstrom. 2022. Causes of outcome learning: A causal inference-inspired machine learning approach to disentangling common combinations of potential causes of a health outcome. International Journal of Epidemiology <https://doi.org/10.1093/ije/dyac078>
Examples
#See the example under CoOL_0_working_example