Magdalena posted on Monday, December 26, 2005 - 7:03 pm
I have tried to conduct exploratory and confirmatory factor analyses with mplus 3.0, using a sample of 8783 subjects. Whenever I try to do this, I get an error message " Unexpected end of file reached in data file." This is only solved if I reduce the sample size. Is there a way around this problem?
You must be reading your data incorrectly. The message means that Mplus is not finding the amount of data expected based on the number of variables in the NAMES statement of the DATA command. It is most likely that you have blanks in your data. Blanks are not allowed with free format. If you cannot figure this out, send your input, data, output, and license number to firstname.lastname@example.org.
Boliang Guo posted on Friday, September 26, 2008 - 3:39 am
Hi Linda,I simulated large scale date with multilevel 2-group cfa code, then,test multilevel mixture model with knownclass (2 classes), the mixture code first say there is missing value in training variable in observation 1, I am confused after checking, surely there is no missing, if I remove observation 1, the mixture code will say 'unexpected end of file reached in data file'. the data can be run with multiple group code, which mean the data has no problem, what I lost here please? I tested with both txt and dat format.
It sounds like you have blanks in your data set and are reading it free format. You need to add a format statement or change the blanks to some other value. If you can't figure this out, you should send your input, data, output, and license number to email@example.com.