[R] mediate

2011-05-27 Thread Mervi Virtanen
Hi! I try to do multiple mediation model where is two mediators but one dependent and one independent variable: med.total <- mediate(c(model.m1,model.m2), model.y, treat="skill", boot=TRUE, sims=1000,mediator=c("dev","irr")) but it isn't work! Could anyone help me? t.Mete __

[R] mediation

2011-05-19 Thread Mervi Virtanen
Hi! I try to find out how bootstrap mediation work! How I coud see the whole function or algorithm? (rather whole bootstrap). t.Mete __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting gui

[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