Re: [R] problem with mediation

2011-05-12 Thread Dennis Murphy
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

[R] problem with mediation

2011-05-12 Thread Mervi Virtanen
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 f

[R] problem with mediation

2009-02-13 Thread Analisi Dati
Dear friends, i've a little problem with a study about mediation. I will call my dependent variable "Y", the independent "X" and "Z" will be my mediator variable... Using a linear regression, i can say that there isn't a direct effect of X on Y because the coefficient of X isn't significative