How to specify latent composite in mlm PreviousNext
Mplus Discussion > Multilevel Data/Complex Sample >
Message/Author
 Melvin C Y posted on Monday, January 16, 2012 - 8:00 pm
I would like to specify single latent composite variables with fixed factor loading and error such as the ones below.

MODEL:
LMEM by MEM@0.8163;
MEM@0.1666;
LCLT BY CLT@0.7180;
CLT@0.2106;
LEPT BY EPT@0.9536;
EPT@0.2273;
...

My question is how do I include them in the model specification in MLCFA.

I tried placing them under the MODEL section, followed by the multilevel commands but obtained the error "The labels %BETWEEN% or %WITHIN% must be specified".

%between%
bcfa by LMEM LCLT LEPT;

%within%
wcfa by LMEM LCLT LEPT;


Thanks,
Melvin
 Linda K. Muthen posted on Wednesday, January 18, 2012 - 9:51 am
You would need to put the variables LMEM LCLT LEPT on the WITHIN list and create between-level counterparts for them using the CLUSTER_MEAN option of the DEFINE command. Then you can correct the variables for reliability on within and between.
 Melvin C Y posted on Thursday, January 26, 2012 - 3:07 am
Hi Linda,

the syntax based on your comments is below. However, I think I'm still missing something. Would appreciate if you could give me a few pointers on where I might have gone wrong. Thanks!

--------------
USEVAR ARE
MEM,CLT,EPT
BMEM BCLT BEPT !new var defined
;

CLUSTER = School;
WITHIN ARE MEM,CLT,EPT;
MISSING ARE ALL (-999);

Define:
BMEM=cluster_mean(MEM);
BCLT=cluster_mean(CLT);
BEPT=cluster_mean(EPT);

Analysis:
TYPE = general twolevel ;

MODEL:

%between%
BCFA by BMEM BCLT BEPT;

%within%
LMEM by MEM@0.8163;
MEM@0.1666;
LCLT BY CLT@0.7180;
CLT@0.2106;
LEPT BY EPT@0.9536;
EPT@0.2273;
WCFA by LMEM LCLT LEPT;
------------------------------

The error message was:
"The number of observations is 0. Check your data and format statement"
 Linda K. Muthen posted on Thursday, January 26, 2012 - 6:42 am
The message has to do with reading the data not the syntax. You may have the variable names on the first record or you have have the wrong number of variable names. If this does not help, please send your output and license number to support@statmodel.com.
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: