What is wrong with this code? PreviousNext
Mplus Discussion > Exploratory Factor Analysis >
Message/Author
 Jessica zhao posted on Thursday, January 12, 2012 - 8:09 pm
I run an EFA but the error indicate "*** ERROR
Unexpected end of file reached in data file."

My code is :

DATA: FILE IS NL_Z.DAT;

VARIABLE: NAMES ARE SID Status Sex AGE_EPI
ZFG1 ZFG2 ZFG3 ZFG4 ZFG5 ZFG6 ZFG7 ZFG8 ZFG9 ZFG10
ZFG11 ZFG12 ZFG13 ZFG14 ZFG15 ZFG16 ZFG17
ZFG18 ZFG19 ZFG20 ZFG21 ZFG22 ZFG23 ZFG24 ZFG25
ZFG26 ZFG27 ZFG28 ZFG29 ZFG30 ZFG31 ZFG32
ZFG33 ZFG34 ZFG35 ZFG36 ZFG37 ZFG38 ZFG39;
MISSING =.;

USEVARIABLES ARE ZFG1-ZFG39;

ANALYSIS: TYPE=EFA 1 8; ! TYPE=MIXTURE EFA 18;
ESTIMATOR=ML;
ROTATION=OBLIMIN;

OUTPUT: MODINDICES FSDETERMINACY;

PLOT: TYPE IS PLOT2;
 Linda K. Muthen posted on Thursday, January 12, 2012 - 8:24 pm
You either have blanks in your data or the number of variables in the NAMES statement is not the same as the number of columns in the data file. If you cannot figure it out, send the output, data, and your 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: