Hi: Try this:
library(sos) # install first if you don't have it already findFn('mediation') You should find at least a half dozen packages from which to choose, at least three of which appear to be devoted to mediation analysis. HTH, Dennis On Thu, May 12, 2011 at 8:56 AM, Mervi Virtanen <mervi.virta...@uta.fi> wrote: > > > > Hello! > > I have problem with mediation analysis. I can do it with function > mediate, when I have one mediator. But how I can do it if I have one > independent variable and one dependent variable but 4 mediators? I > have try function mediations, but it dosen't work. If I use mediate 4 times, > each for every mediator, is it same? I want to know what is total mediate > effect for 4 mediators. > > t.Mete > > ______________________________________________ > R-help@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. > ______________________________________________ R-help@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.