reverseMAdata: reverseMAdata

Description Usage Arguments Value Author(s)

View source: R/reverseMAdata.R

Description

Apply mediate function from the mediation package in scenarios of reverse causality.

Usage

1
reverseMAdata(X, M, Y, SEED = 1, nSimImai = 1000)

Arguments

X

is the exposure

M

is the mediator

Y

is the outcome

SEED

is the seed

nSimImai

is the number of simulations for the mediate method

Value

a list of Estimates and p-values for the direct and indirect effects in situations with and without reverse causality.

Author(s)

Annie Thwing, Sharon Lutz


SharonLutz/reverseCT documentation built on Oct. 30, 2019, 11:54 p.m.