Message/Author 


Hi, I'm trying to estimate a negative binomial model where my count variable has nonintegers in it (0.3, 0.7, etc), but I keep getting the error below: There is at least one observation in the data set where a count variable has negative or noninteger value. Please check your data and format statement. Is this estimation not possible? Jennifer 


Count variables are integer values starting at zero. 


I´m trying to estimate a linear growth model for errors in a learning task. Errors are count variables, right?. When I try to estimate the model I get the warning: There is at least one observation in the data set where a count variable has negative or noninteger value. Please check your data and format statement. When checking my datas I find no negative or noninteger values (range 0  0.24). Missings are defined (999). Is there something I fail to notice? Thank you very much! 


You may have blanks in your data set and are reading it as free format causing the data reading to be off. Blanks are not allowed with free format data. Or you may have more names on the NAMES list than columns in your data set also causing the data to be read incorrectly. If you can't figure this out, please send the files and your license number to support@statmodel.com. 

B posted on Friday, August 01, 2014  5:29 am



RE: The above error When you say you are reading in blanks I'm assuming that this is over an above the set missing command? If so, how would I rectify this if reading in a .dat file? I don't find much about the Format command. I tried to crack this issue for a while yesterday. I'm using MplusAutomation through R to prepare data for Mplus. I figured something strange might be going on in the back end, since I think I've seen people have this issue with STATA. Nothing seemed to work. File looks fine. *** ERROR There is at least one observation in the data set where a count variable has negative or noninteger value. Please check your data and format statement. 


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

Back to top 