[R] Strange glm(, quasipoisson) error

Wil M Contreras Arbaje wil.contreras at gmail.com
Tue Oct 19 06:55:46 CEST 2010


Dear list,

I have recently encountered an odd error when running glm(dep~indep,  
quasipoisson): while, with a subset of my data, I could get a  
perfectly reasonable model, once I include all of my data (17K+  
observations, 29 variables), I get the following error:

Error in if (any(y < 0)) stop("negative values not allowed for the  
quasiPoisson family") :
   missing value where TRUE/FALSE needed
In addition: Warning message:
In Ops.factor(y, 0) : < not meaningful for factors

I say this is odd because I triple checked my response variable, and  
not a single observation is negative. Is R encountering an error due  
to the size of the data, and somehow returning a 'random' error?  
(would be stranger still!)

Thanks a million, hope this makes sense.

Cheers,


Wil



More information about the R-help mailing list