Syntax errors PreviousNext
Mplus Discussion > Confirmatory Factor Analysis >
Message/Author
 Ioanna Vrouva posted on Monday, June 04, 2012 - 10:29 pm
Would be grateful for your advice.
My syntax is:
TITLE: bpd-npd
DATA: FILE IS test.dat;
VARIABLE: NAMES ARE id PDexp PDdich
pddiag age
gender cs1 cs3 cs5 cs7 cs8 cs9 ;
USEVARIABLES cs3 cs7 cs8 cs9 ;
MISSING ARE all (-1);
CATEGORICAL cs3 cs7 cs8 cs9 ;
ANALYSIS: TYPE = missing h1;
MODEL:
f1 BY cs3 cs7 ;
f2 BY cs8 cs9 ;
OUTPUT: standardized;
modindices;

which results in the following warnings:

*** WARNING in ANALYSIS command
Starting with Version 5, TYPE=MISSING is the default for all analyses.
To obtain listwise deletion, use LISTWISE=ON in the DATA command.
*** WARNING in ANALYSIS command
Starting with Version 5, TYPE=H1 is the default for all analyses with
missing data. To turn off the estimation of the H1 model and the
computation of chi-square, use NOCHISQUARE in the OUTPUT command.
*** ERROR
Unexpected end of file reached in data file.

I have coded Missing values as -1 and my cs variables are categorical.
How can I correct the command?

thanking you in advance
Ioanna
 Linda K. Muthen posted on Tuesday, June 05, 2012 - 11:46 am
You may have blanks in your data set causing the data to be misread. If this is not the case, send the input, data, output, and your license number to support@statmodel.com.
 Ioanna Vrouva posted on Saturday, June 09, 2012 - 9:29 am
Thank you very much, this was indeed the case.

Best wishes
Ioanna
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: