cde_tmle: Controlled Direct Effect (CDE) of the Targeted Minimum...

Description Usage Arguments Value Author(s) References Examples

Description

Controlled Direct Effect (CDE) of the Targeted Minimum Loss-based Estimation (TMLE) model.

Usage

1
2
3
4
cde_tmle(x = NULL, m = NULL, c_xy = NULL, c_my = NULL, y = NULL,
  mX = NULL, mM = NULL, mY = NULL, famX = "gaussian",
  famM = "gaussian", famY = "gaussian", boot = TRUE, sims = 100,
  ci = 0.95)

Arguments

x

: (datatype) Description of structure. What it represents.

m

: (datatype) Description of structure. What it represents.

c_xy

: (datatype) Description of structure. What it represents.

c_my

: (datatype) Description of structure. What it represents.

y

: (datatype) Description of structure. What it represents.

mX

: (datatype) Description of structure. What it represents.

mM

: (datatype) Description of structure. What it represents.

mY

: (datatype) Description of structure. What it represents.

famX

: (datatype) Description of structure. What it represents.

famM

: (datatype) Description of structure. What it represents.

famY

: (datatype) Description of structure. What it represents.

boot

: (boolean) A boolean variable that indicates whether a non-parametric bootstrap will be used to calculate confidence intervals

sims

: (positive integer) If boot is TRUE, sims is the number of simulations used to generate the confidence intervals.

ci

: (float) A float between 0 and 1 representing the desired confidence interval to be used for the non-parametric bootstrap.

Value

: (vector) a length-2 list with the CDE with RR-interaction and RD-interaction. If boot is TRUE, it will also return the right and left bounds of the desired confidence interval, ci.

Author(s)

Ashley Naimi ashley.naimi@pitt.edu

Cantwell Carson carsonc@gmail.com

References

Naimi, A. I., Schnitzer, M. E., Moodie, E. E. M., & Bodnar, L. M. (2016). Mediation Analysis for Health Disparities Research. American Journal of Epidemiology, 184(4), 315–324. https://doi.org/10.1093/aje/kwv329

Examples

1
'examples/cde_example.R'

ainaimi/trimediation documentation built on May 25, 2019, 2:24 p.m.