Monte Carlo CFA with 3 factors PreviousNext
Mplus Discussion > Confirmatory Factor Analysis >
Message/Author
 Madison O'Meara posted on Thursday, September 21, 2017 - 4:35 pm
Hi:

I am attempting to run a Monte Carlo simulation of a CFA with 9 indicators and 3 factors (syntax below). I based my syntax on example 5.1 syntax in the user guide, but mine is not running correctly and I cannot for the life of me figure out why. I have tried adding/taking away indicators, switching up factor loadings, etc. The errors always say that some matrix is non-positive definite, and that number of iterations for convergence have been exceeded (even when set to 10,000).

Can someone who is more savvy help me out?? Ideally, I'd like to add method factors and correlated factors to this but I'm not daring to try until I get the most basic model to run.

title: Monte Carlo - CFA with N = 300 and .35 loadings

montecarlo:
names = y1-y9;
nobs = 300;
nreps = 100;


model montecarlo:
f1 by y1-y5*.35;
f2 by y6-y7*.35;
f3 by y8-y9*.35;
y1-y9*1;
f1-f3*1;

model:
f1 by y1-y5*.35;
f2 by y6-y7*.35;
f3 by y8-y9*.35;
y1-y9*1;
f1-f3*1;

output:
tech9;
 Bengt O. Muthen posted on Thursday, September 21, 2017 - 4:55 pm
The model in your MODEL command is not identified because you haven't set the factor metric - you both free all loadings and free the factor variances.
 Madison O'Meara posted on Friday, September 22, 2017 - 5:54 am
Thanks!

How might I do that in terms of syntax? Sorry, I am struggling with this as I have never done it before!

-Madison
 Madison O'Meara posted on Friday, September 22, 2017 - 6:16 am
Ok, I figured it out and got that model to run correctly but I'm now having trouble with my full model - Will post syntax in another message below.
 Madison O'Meara posted on Friday, September 22, 2017 - 6:17 am
montecarlo:
names = y1-y13;
nobs = 300;
nreps = 100;
model montecarlo:
f1 by y1@1 y2-y7*.35;
f2 by y8@1 y9-y10*.35;
f3 by y11@1 y12-y13*.35;
f4 by y1@1 y2-y9*.35;
f5 by y10@1 y11-y13*.35;
f1 with f2*.3;
f1 with f3*.3;
f2 with f3*.3;
f5 with f4@0;
f5 with f3@0;
f5 with f2@0;
f5 with f1@0;
f4 with f3@0;
f4 with f2@0;
f4 with f1@0;
y1-y13*1;
f1@1;
f2@1;
f3@1;
f4@1;
f5@1;
model: [repeated for model statement, removed for length]
output:
tech9;
 Bengt O. Muthen posted on Friday, September 22, 2017 - 4:07 pm
We need to see your full output - please send to Mplus Support along with your license number. We ask that postings be limited to one window and longer messages be sent to Support.
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: