CoOL_8_mean_risk_contributions_by_sub_group: Mean risk contributions by sub-groups

CoOL_8_mean_risk_contributions_by_sub_groupR Documentation

Mean risk contributions by sub-groups

Description

Table with the mean risk contributions by sub-groups.

Usage

CoOL_8_mean_risk_contributions_by_sub_group(
  risk_contributions,
  sub_groups,
  exposure_data,
  outcome_data,
  model,
  exclude_below = 0.001,
  restore_par_options = TRUE,
  colours = NA,
  ipw = 1
)

Arguments

risk_contributions

The risk contributions.

sub_groups

The vector with the sub-groups.

exposure_data

The exposure data.

outcome_data

The outcome data.

model

The trained non-negative model.

exclude_below

A lower cut-off for which risk contributions shown.

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 and a dataset with the mean risk contributions 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

ekstroem/CoOL documentation built on June 1, 2022, 12:33 p.m.