meas_effect_modif: Compute estimates of the association measures for 2 strata

View source: R/meas_effect_modif.R

meas_effect_modifR Documentation

Compute estimates of the association measures for 2 strata

Description

Compute estimates of the association measures for 2 strata.

Usage

meas_effect_modif(data, formula, exposure.name, modifier.name)

boot(data, formula, exposure.name, modifier.name)

Arguments

data

Dataframe of raw data.

formula

The model formula.

exposure.name

Name of the exposure variable.

modifier.name

Name of modifier variable.

Details

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.

Value

Dataframe in a useable format for rsample::bootstraps.

Source

Section 4.1


FrankLef/fciR documentation built on Nov. 12, 2023, 6:09 a.m.