Message/Author 


Hi, I'm trying to do a path analysis with a variable that has noninteger values. As a result, I'm getting an error message. Is it possible to correct this without modifying my variable? Thanks 


It sounds like you are putting the variable on the CATEGORICAL list. If it is categorical, it should not have noninteger values. Perhaps you are reading the data incorrectly. 


Hello, I am getting a similar problem; however, I checked the data and everyone is coded as either a 1,2 or 3. Any suggestions? 


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

Lin Gu posted on Sunday, December 09, 2012  6:43 pm



I have a variable that has 7 ordered values: 0, .5, 1, 1.5, 2, 2.5, and 3. I put it one the categorical list and got the error message about nonintegar values. Is there a way that I can treat the variable as a categorical variable or do I have to model it as a continuous variable? Thanks. 


The values of a categorical variable have no meaning. Just change the values to integers: 0 1 2 3 4 5 6 


Hi I am having the same problem as Melissa Kimber *** ERROR Categorical variable BPCNTR contains noninteger values I have checked the input file on notepad and the variable is coded 1 or 2 I went back to my original SPSS file and saved it as dat file and tried again. same result. any help appreciated 


Please send the output, data set, and your license number to support@statmodel.com. You are most likely reading the data incorrectly or you have blanks in the data set. 


Hello, I am also having the same problem as both Melissa and Rohan (above). I'm trying to read in a categorical variable, and have checked that the values are integer in the .dat file but the output continues to state the following "*** ERROR Categorical variable SCT1OGIV contains noninteger values." I have tried running this many times and continues to be a problem. Is there a way if / how I may be reading in the data incorrectly? Many thanks. 


It is likely that you have blanks in the data set which cause free format data to be read incorrectly. If you can't figure this out, send the files and your license number to support@statmodel.com. 


*** ERROR in VARIABLE command Categorical variable U20 contains invalid and/or noninteger values. Problem with: GPCM I see this error trying to run an IRT model in mplus. I am employing the users guide example "5.5: Generalized partial credit model". I am copying/downloading the example input and data files as is. The file will run if I drop (gpcm) out of the command line in the example. But I am wanting to run the gpcm. 


Please send the files and your license number to support@statmodel.com. 

Deniz posted on Thursday, August 03, 2017  5:58 am



Dear Drs. Muthen, I am specifying a manifestlatent model (M2) as suggested by Marsh et al. (2009; DOI: 10.1080/0027317090333366). My factor indicators are ordered and I have, thus, computed a median across the items on the withinlevel. In some cases four items are used to calculate the median and the resulting medians are consequently not all integers. As mplus does not accept float values as categorical values, I thought about rounding the values, but I am not sure if that is appropriate. How would you suggest to treat the float values in this case? Thank you so much in advance 


If you compute a median, you would treat the variable as continuous, not categorical. 

Deniz posted on Friday, August 04, 2017  3:57 am



Thank you for your answer. Just to make sure, you would suggest that I treat the medians as continuous variables and therefore conduct a linear multilevel regression? If this is the case, could I also interpret standardized results? Thank you so much. 


Yes and yes. 


Dear Dr Muthen I am specifing a multilevel model Dependent Variable  categorical 0 and 1; missing 99. Trying to run the error occures categorical variable contains noninteger values. I checked data. Everything is ok. Many thanks 


Send output and data to Support along with your license number. 

Back to top 