Message/Author 

Ravi Jasuja posted on Wednesday, June 14, 2006  11:25 pm



Hi, 1. Could you please explain how the issue of observation dependence or independence can be adequately handled in structural equation modeling approach. 2. Is multilevel modeling possible in SEM ? Could you please recommend some literature on multilevel modeling in SEM? Thank you. 


Yes, multilevel modeling is possible in SEM. See Muthén, B. (1994). Multilevel covariance structure analysis. In J. Hox & I. Kreft (eds.), Multilevel Modeling, a special issue of Sociological Methods & Research, 22, 376398. You can request this paper from bmuthen@ucla.edu. See Examples 9.6 to 9.11 in the Mplus User's Guide which is available on the website. 

robertav posted on Monday, September 03, 2007  9:29 am



Dear Authors, I'm carring on a SEM with both continuous and categorical(ordinal) indicators, with 5 continuous latent factors. I have 13428 observation. In order to save time I'm using the WLSMV estimator. How many observation I need to consider the WLSMV a good approximation of the ML estimator? Can you suggest me any reference? And, as second step of my analysis, I’d like to add a multilevel structure. I have 5 continuous latent factors at the first level. Do you think it is feasible with Mplus? Any hints will be appreciate. Thanks roberta 


Sample size depends on many factors so it is hard to say. I don't think the sample size requirement differs for maximum likelihood and weighted least squares. At this time, you will need to use numerical integration to estimate a multilevel SEM model. Five factors would not be feasible. 


My data were collected for students nested within schools, but my primary interest is to do a singlelevel SEM model and not multilevel one. However, 7 out of 39 indicators showed significant schoollevel variance (which implies I need MLM). Since I am not interested in MLM I would like the dependence of the data to be taken into account, but not modeled. 1. Is type=complex appropriate analysis for this? 2. Does it produce the same info in the output as type=missing? I also have some missing data  how to account for that? 3. Do I have to grandmean center those 7 variables first before using singlelevel SEM (and eliminate clusterlevel variance)? Thanks! 


1. SEM models are typically not "aggregatable" in the sense of Muthen & Satorra (1995), which means that Type = Complex should not be used but instead Type = Twolevel. This happens if factor loadings are not the same on the two levels. I would recommend a simple random intercept twolevel SEM using the analysis steps of Muthén, B. (1994). Multilevel covariance structure analysis. In J. Hox & I. Kreft (eds.), Multilevel Modeling, a special issue of Sociological Methods & Research, 22, 376398. (#55) 2. The Mplus Twolevel analysis does do Type = Missing as the default, which uses the standard "MAR" under ML approach  using all available data (often called "FIML"). 3. No. And grandmean centering does not take care of clustering. You will find a handout about Mplus multilevel factor analysis and SEM on our web site under Mplus Short Courses Topic 7, from the recent course at Johns Hopkins in March. The video of the course will soon be available for free watching on the web. 

newuser posted on Monday, January 04, 2010  7:43 am



Hi, I am running a multilevel SEM mediation model (211), the M variable is a second order variable. I have successfully run similar (11(second order)1) models with the same M and Y variables. However, running into problems when I try the (211) using a higher level X. I am wondering if the second order variable(M)is creating the problem, and if I should reduce it to a first order variable? Here is how the 211 model looks %within% Y by y1 y2 y3 M by m1 m2 m3 (second order) M1 by ma mb mc (first order) M2 by md me mf (first order) M3by mg mh mi (first order) X by x1 x2 x3 Y on M %between% X by x1 x2 x3 Yb by y1 y2 y3 Mb by m1 m2 m3 (second order) M1b by ma mb mc (first order) M2b by md me mf (first order) M3b by mg mh mi (first order) Yb on Mb X Mb on X Thank you for your help!! 


Please send your input, data, output, and license number to support@statmodel.com. 


1. Is twolevel analysis using multiple imputation data possible to run using MPlus 6.11? 2. How do we set up the data if we have 10 sets of multiple imputation data? 


Mplus can both impute data and analyze imputed data for twolevel analysis. For analyis, each imputed data set should be in a separate file and TYPE=IMPUTATION should be used. See Example 13.13 in the Version 6 user's guide. 

SY Khan posted on Thursday, December 19, 2013  12:48 pm



Dear Dr. Muthen, I am testing a 2level SEM. The level 1 outcome variable is a continuous latent variable (JS). On level 2 I have another continuous latent variable (EMPPART). I have categorical factor indicators at the WITHIN level. On the between level I have Binary factor indicators for level 2 factor and random intercept factor indicators. And no covariates on any level in the initial model! I am following example 9.9 of users guide 7.11. I am using the following syntax: DATA: VARIABLE: ; NAMES= ; CATEGORiCAL= ; CLUSTER= ; Missing= all (999); ANALYSIS: TYPE=TWOLEVEL; ESTIMATOR= WLSMV; MODEL: %WITHIN% FJS BY JS19; %BETWEEN% FJS2 BY JS19; EMPPART BY BRGROUP QLTYCIRCL INFOSHAR; FJS2 ON EMPPART; SAVEDATA: 1Does this syntax suffice? Also kindly explain: 2 why do we want to save data in this analysis? I.e. What can we explore from the saved data at a later stage? 3 as I can not use BOOTStRAP with type= TWOLEVEL what can I use instead? Is there a need to use BOOTSTRAP or other similar techniques to make analysis stronger? Thanks very much for your input and time. 


1. Run the analysis to see if you get what you want. 2. This is explained on page 280 of the user's guide. 3. Use the regular standard errors. 

SY Khan posted on Friday, January 10, 2014  6:43 am



Hi Dr. Muthen I have tried running the above syntax a few times in Mplus version 7.11. It always gives the message that Mplus has stopped working unexpectedly. In the out put it says : The data terminated normally and does not give any output. Please advise what could be wrong in the input instructions. Many thanks. 


It sounds like you are trying to write the output to a directory that does not have write privileges. Windows 7 does not allow any files to be write under the directory of Program Files. Try moving the input and data to c:/ 

SY Khan posted on Friday, January 10, 2014  7:33 am



Hi Thanks for your prompt reply. I am running this input file in windows 8.1. Is that a problem? Is Mplus NOT supported in Windows 8.1? Many thanks. 


Mplus is compatible with Windows 8. The problem is likely what I describe above for Windows 7. 

SY Khan posted on Tuesday, January 21, 2014  6:25 am



Hi Dr. Muthen, Sorry for coming back with the same problem over and over. I have tried moving my data and input files in C directory as suggested in your previous post above. This time too the test ran for approx. five days and then aborted unexpectedly . The message was that " Mplus stopped working unexpectedly but no other error message was given that suggested any modifications to the input instructions etc. I would be greatly thankful if you could suggest remedies as this is one of the main model in my analysis. How can I make this model run successfully? Many thanks for your support and assistance. 


Please send your input, data, and license number to support@statmodel.com. 

Gizem Erdem posted on Tuesday, April 22, 2014  2:41 pm



Hi Dr. Muthen, I am fitting a 111 multilevel SEM model with the following syntax: Title: Multilevel SEM Data: file is MSEM.FORMPLUS.dat; Format is 3(F8.0) 25(F8.2); Variable: Names are ID agency t1weight ATS2 CWS2 MSE2 MRQ2; Usevariables agency ATS2 CWS2 MSE2 MRQ2; CLUSTER = agency; ANALYSIS: TYPE IS TWOLEVEL RANDOM; MODEL: %WITHIN% MCQ2 ON MSE2(A); MSE2 ON ATS2(D); MSE2 ON CWS22(E); MRQ2 ON MSE2; MRQ2 ON CWS2; %BETWEEN% AMTRNST2 ACWSPP2; MRQ2 ON MSE2(AA); MSE2 ON ATS2(DD); MSE2 ON CWS2(EE); MRQ2 ON ATS2; MRQ2 ON CWS2; MODEL CONSTRAINT: NEW (indda indea indddaa indeeaa ); indda=d*a; indea=e*a; indddaa=dd*aa; indeeaa=ee*aa; Output: TECH1 TECH8 CINTERVAL; Savedata: file is MSEM.FORMPLUS.sav Save is fscores; The model gives the following errors: THE ESTIMATED WITHIN COVARIANCE MATRIX IS NOT POSITIVE DEFINITE AS IT SHOULD BE. COMPUTATION COULD NOT BE COMPLETED. THE MODEL ESTIMATION DID NOT TERMINATE NORMALLY DUE TO AN ERROR IN THE COMPUTATION. CHANGE YOUR MODEL AND/OR STARTING VALUES. What can I do to address these issues? Thank you! 


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

Back to top 