View source: R/meas_effect_modif.R
meas_effect_modif | R Documentation |
Compute estimates of the association measures for 2 strata.
meas_effect_modif(data, formula, exposure.name, modifier.name)
boot(data, formula, exposure.name, modifier.name)
data |
Dataframe of raw data. |
formula |
The model formula. |
exposure.name |
Name of the exposure variable. |
modifier.name |
Name of modifier variable. |
The formula must always be in form Y ~ `T` + M
, that is with only
2 predictors: T
as the treatment variable and M
as the modifier
variable. The exposure variable is identified by the argument
exposure.name
, the other variable is assumed to be the modifier
variable.
Dataframe in a useable format for rsample::bootstraps
.
Section 4.1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.