Message/Author 


When I run my CFA, the error below is reported. I have saved the SPSS data set as .dat and .csv (write names of variables is unchecked). This error occurs for both files. This number (16197) is similar to the sample size. I have also examined the SPSS data set and cannot find any indication of why this error is occurring. Any thoughts are appreciated! *** ERROR Categorical variable U1 contains 16197 categories. This exceeds the maximum allowed of 10. Title: CFA Data: FILE IS C:\Documents and Settings\Owner\Desktop\dissertation\stats\CFA mplus.dat; Variable: NAMES ARE u1 u2 u3 u4 u5 u6 u7 u8 u9 u10 u11 u12 u13 u14 u15 u16 u17 u18 u19 u20 u21 u22 u23 u24 u25 u26 u27 u28 u29 u30 u31 u32; CATEGORICAL ARE u1 u2 u3 u4 u5 u6 u7 u8 u9 u10 u11 u12 u13 u14 u15 u16 u17 u18 u19 u20 u21 u22 u23 u24 u25 u26 u27 u28 u29 u30 u31 u32; MISSING ARE all (9); MODEL: f1 BY u1u7; f2 BY u8u12; f3 BY u13u17; f4 BY u18u22; f5 BY u23u27; f6 BY u28u29; f7 BY u30u32; OUTPUT: standardized; modindices; 


You probably have blanks in the data set and are reading it free format. Blanks are not allowed with free format data. SPSS seems to use blanks for certain types of missing data. 

Lisa M Boyd posted on Friday, October 28, 2011  7:55 pm



I'm having a similar problem with Stata data that I've transferred to .dat format using the 'stata2mplus' command. The error message says one of my variables has 11 categories, even though according to Stata it only has 3 (dichotomous plus missing). Any ideas about how I might identify the problem? 


The data reading specifications must be set up incorrectly. Check that the number of variable names matches the number of columns in the data set and that the order of the names corresponds to the order of the columns. If this does not help, please send the output, data, and your license number to support@statmodel.com. 

Emily posted on Wednesday, February 29, 2012  3:39 pm



Hi, am having the same problem importing a categorical variable from STATA using the 'stata2mplus' command. The error message says one of my variables has 11,396 categories, even though according to Stata it only has 2(dichotomous plus missing). 11,396 is the number of induvidual records. I've tried compressing the data but this did not solve it. Do you now have a fix for this? 


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

Emily posted on Thursday, March 01, 2012  1:05 pm



Thanks Dr Muthen I solved this on my own. I outsheeted from stata as a csv file, filled in my missing values as 9999 and removed the variable name headers and imported direct into mplus as a csv file without problem without using stata2mplus. Hope this solution might help others with the same issue. 

Back to top 