Description Usage Arguments Value See Also
decomp
is a function that implements causal effect decomposition based on a fitted
rwrmed
model. It returns a two-component decomposition of the total effect into
the randomized interventional analogues of the natural direct effect (rNDE) and the natural
indirect effect (rNIE). It also returns a four-component decomposition of the total effect into
the controlled direct effect (CDE) and the randomized analogues of the reference interaction
effect (rINTREF), the mediated interaction effect (rINTMED), and the pure indirect effect (rPIE).
1 2 |
object |
An object of class |
a0 |
The baseline level of treatment. |
a1 |
The level of treatment to be contrasted with the baseline. |
m |
The level of the mediator at which the CDE is evaluated. |
bootstrap |
Whether to compute standard errors and 95 nonparametric bootstrap. |
rep |
Number of bootstrap replications if |
A list of two elements.
twocomp |
Two component decomposition of the rATE into rNDE and rNIE. |
fourcomp |
Four component decomposition of the rATE into CDE, rINTREF, rPIE, and rINTMED. |
rwrmed
for implementing the regression-with-residuals (RWR)
approach to causal mediation.
a0 = 0; a1 = 1; m = 0; bootstrap = TRUE; rep = 250
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.