[R] glm() problem

From: svante <svante_at_math.aau.dk>
Date: Sat 07 Apr 2007 - 18:37:26 GMT


I have some - for me - unresolvable troubles with glm. First call:
glm(n~.,data=mDat,family=poisson,control = list(trace = TRUE)) Error in 1:control$maxit : NA/NaN argument Second call:
glm(n~.,data=mDat,family=poisson,control = list(trace = TRUE,maxit=1)) Deviance = 23.48436 Iterations - 1
Error in if (abs(dev - devold)/(0.1 + abs(dev)) < control$epsilon) { :

    argument is of length zero
Some of the response counts are zero - so third call: glm(n~.,data=mDat[mDat$n>0,],family=poisson,control = list(trace = TRUE,maxit=1))
Deviance = 17.63633 Iterations - 1
Error in if (abs(dev - devold)/(0.1 + abs(dev)) < control$epsilon) { :

    argument is of length zero

Anyone having a clue to this problem?

Best wishes
svante



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Sun Apr 08 04:43:10 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sat 07 Apr 2007 - 21:31:40 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.