Ryan Krone posted on Wednesday, August 27, 2014 - 3:57 pm
Dear Drs. Muthen,
I'm attempting a three-level SEM with categorical dvars and covariates that are regressed on all of the latent variables. I'm working with version 7.2 The data is cross-sectional complex survey data with a sample weight and with missing data. The levels are individual, province/state, and country. I've gotten as far as specifying the SEM with the covariates but now I'm having difficulty specifying the multi-level model. Here is a reduced form example of my input file: VARIABLE: USEVARIABLES ARE u1-u8 x1- x4 prov cname wt; CATEGORICAL = u1-u8; CLUSTER = cname prov; WEIGHT = wt; MISSING ARE ALL (-99); ANALYSIS: TYPE = COMPLEX THREELEVEL; ESTIMATOR = BAYES; PROCESSOR = 2; MODEL: %WITHIN% rol BY u1-u2; legit BY u3-u5; civic BY u6-u8; rol ON legit; rol ON civic; rol legit civic ON x1-x4; legit WITH civic; %BETWEEN prov% %BETWEEN cname% OUTPUT: MODINDICIES TECH1 TECH8; At this point I don't have second or third level covariates. All my data is at the individual level. I'm just interested in controlling for nested variation similar to a multilevel regression random intercepts model. How would I specify the between parts to do this? I appreciate your time,
You want to work with random intercepts for your 3 factors. To do that you can formulate the same factor models on the two Between levels and correlate those. See the multilevel factor analysis examples in our User's Guide for 2-level versions of this.
Ryan Krone posted on Wednesday, August 27, 2014 - 6:36 pm
Dr. Muthen, Thank you for the timely response.
I'm not sure which example to work from in the user guide. I had been trying to work from example 9.9 without much luck. But given your response and based on responses to other posts, is it as simple as specifying it this way? %BETWEEN prov% rol WITH legit civic; legit WITH civic; %BETWEEN cname% rol WITH legit civic; legit WITH civic;
When I do try to do this, I get the following error message: *** ERROR in ANALYSIS command Unrecognized setting for TYPE option: THREELEVEL Regards, Ryan