Bayes estimator in a multiple mediato... PreviousNext
Mplus Discussion > Multilevel Data/Complex Sample >
Message/Author
 Allison Ellis posted on Monday, December 15, 2014 - 2:32 pm
Hello,
I'm trying to run a multiple mediator model. paam and efam are L1 mediators between jcSR and eng (also L1)(fixed slopes). day is a control variable at L1. I want to use the ESTIMATOR=BAYES option but get the following error:


*** ERROR in MODEL command
Unrestricted x-variables for analysis with TYPE=TWOLEVEL and ESTIMATOR=BAYES
must be specified as either a WITHIN or BETWEEN variable. The following variable
cannot exist on both levels: JCSR

Syntax is below:
USEVARIABLES ARE id day paam efam jcSR eng;
within=day;
CLUSTER IS id;
ANALYSIS: TYPE IS TWOLEVEL RANDOM;
ESTIMATOR=BAYES;
MODEL:
%WITHIN%
paam ON jcSR(aw1);
efam ON jcSR(aw2);
eng on paam(bw1);
eng on efam(bw2);
eng ON jcSR;
paam ON day;
efam ON day;
eng ON day;
paam WITH efam;
%BETWEEN%
paam efam eng;
eng ON paam(bb1);
eng ON efam(bb2);
eng ON jcSR;
paam WITH efam;
paam ON jcSR(ab1);
efam ON jcSR(ab2);
MODEL CONSTRAINT:
NEW(abw1 abw2 abb1 abb2 conw conb);
abw1=aw1*bw1;
abw2=aw2*bw2;
abb1=ab1*bb1;
abb2=ab2*bb2;

Thank you for any help you can provide.
 Bengt O. Muthen posted on Monday, December 15, 2014 - 4:41 pm
Unlike ML, with Bayes estimation the latent variable decomposition of the independent variables (JCSR in this case) is not done. You have to create a between-level version of this variable (you can use the cluster-mean option) and specify JCSR as a within variable.
Back to top
Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action: