Message/Author 


Hi Drs Muthen & Muthen, I am trying to estimate a multilevel mediation model 211 using code similar to Preacher's example E at website: http://www.people.ku.edu/~preacher/pubs/syntax_appendix_081009.pdf. When I treat my dependent variable (level 1) as continuous, things work just fine. But when I treat it as zeroinflated Poisson, or as Tobit, then I receive the error belowwhich basically disallows me from estimating the Betweengroup component of the 11 part of my 211 mediation path. I would appreciate any advice/explanation  thank you! Jennifer *** ERROR in MODEL command Observed variable on the righthand side of a betweenlevel ON statement must be a BETWEEN variable. 


In the between part of the model command, if the variable is u, add f BY u; u@0; and use f in place of u in the ON statement. This is simply a trick that makes Mplus think it is a between level variable. It has no statistical impact. 


Thank you so much! This code works, but now  of course  my model will not converge despite increased iterations. I appreciate your help. I may need to email the support@statmodel with my data, but will try to correct things myself tomorrow morning. Thanks! Jennifer 


hi Dr. Mutehns i have a model with multiple mediator my model is consist of one level 2 variable (x1) and 2 level 1 mediator (m1, m4) and one level 1 dependent variable(y1) my question is did i wrote a right syntax??? i can't find a 2111 multilevel mediation model example.. please help me! my syntax is here. data: file is norm_motive.txt ; variable: names = x1 x2 m1 m2 m3 m4 y1 y2 w personalid team ; usevariables = x1 m1 m4 y1 team ; within = ; between = x1 ; cluster = team ; analysis: type = twolevel random ; estimator = ML ; model: %WITHIN% s1 m4 ON m1 ; ! within level p_DM_S > WRDA s2 y1 ON m4 ; ! within level WRDA > p_PD %BETWEEN% m1 ON x1 (a) ; ! between level t_DSN > p_DM_S m4 ON m1 (s3) ; ! between level p_DM_S > WRDA y1 ON m4 (s4) ; ! between level WRDA > p_PD s1 WITH x1 m1 m4 y1 ; s2 WITH x1 m1 m4 y1 ; [s1](ms1) ; [s2](ms2) ; model constraint: new(b1 b2 ind) ; b1=s3*ms1 ; ! copute between b1 path b2=s4*ms2 ; ! compute between b2 path ind=a*b1*b2 ; ! indirect effect t_DSN > p_DM_S > WRDA > p_PD output: sampstat tech3 tech8 


You are interested in mediation on Between. The means of the random slopes are only involved for Withinlevel indirect effects. The indirect effect on Between is simply a*s3*s4. 

Back to top 