[R] Control variables in mediation analysis
Ista Zahn
istazahn at gmail.com
Thu Mar 21 21:49:46 CET 2013
Hi,
Just about anything can be bootstrapped, that's one of the things that
makes bootstrapping great! Use e.g., the boot package, and bootstrap
the product of the coefficients.
Alternatively the mediation package
(http://cran.r-project.org/web/packages/mediation/index.html) might
help, though I'm not sure if it uses bootstrap.
Best,
Ista
On Thu, Mar 21, 2013 at 3:21 PM, F.Doerwald <f.doerwald at student.rug.nl> wrote:
> Hi everyone,I would like to test a mediation model, that has several control variables. More specifically, I would like to test the indirect effect with bootstrapping. However, all the packages I have found so far (e.g. MBESS) only allow testing a simple mediation model (One independent, one mediator, one dependent) so that I cannot include any controls.
> Can somebody help me?
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list