Message/Author 


Hi, I am trying to run a 2level mediation model  I copied it directly from syntax provided by Preacher (http://www.quantpsy.org/pubs/syntax_appendix_081311.pdf), using the 111 model with random slopes, and am running into some problems: When I first tried to run the model, I got a fatal error message: "THIS MODEL CAN BE DONE ONLY WITH MONTECARLO INTEGRATION." I then inserted ALGORITHM = INTEGRATION and INTEGRATION=MONTECARLO into the analysis section, but again I got a series of error messages (for both my x and my mediator): " *** ERROR in MODEL command Observed variable on the righthand side of a betweenlevel ON statement must be a BETWEEN variable. Problem with: T1GMOT1" Any suggestions for how I can fix this? Thank you for your help! 


Please send the output and your license number to support@statmodel.com. 


Hi, I am having a similar problem to the one described above when running the 111 MSEM with random slopes model provided by Preacher et al (2010). I have narrowed the problem down to the lines of syntax at the beginning of the %between% section, where estimates for the variances and covariances are requested. If I add the independent (x) variable to any of these statements, I get the fatal error message: "THIS MODEL CAN BE DONE ONLY WITH MONTECARLO INTEGRATION." If I remove the x variable the model runs normally (although I do get a warning that estimation has reached a saddle point). I would greatly appreciate any guidance on how to deal with this. Thank you very much. 


Have you tried running it as suggested ALGORITHM = INTEGRATION; INTEGRATION = MONTECARLO; 


Thank you for the prompt response, Bengt. If I run it with Monte Carlo integration I get the following error message: *** ERROR in MODEL command Unrestricted xvariables for analysis with TYPE=TWOLEVEL and ALGORITHM=INTEGRATION must be specified as either a WITHIN or BETWEEN variable. The following variable cannot exist on both levels: X X is a withinlevel variable. However, if I specify it as such, then I cannot use it on the between level as is needed to carry out the Preacher et al syntax. Thanks again for your help. 


You can create a clusterlevel variable for x using the CLUSTER_MEAN option of the DEFINE command and use this on between. 

Back to top 