[R] GLM questions

Ernesto Jardim ernesto at ipimar.pt
Mon May 13 12:22:50 CEST 2002


Hi


I'm doing a glm analysis and I have two doubts (at least :)

1) When I run the function it gives a lot of warnings (see below) what
they mean ? (may be I'm ignorant about this analysis ...)

glm.poisson<-glm(log(Jkij+1)~fac.ano+fac.tri+fac.icesr+fac.mat+fac.ano:fac.icesr+fac.ano:fac.tri,family=poisson())

warnings()

40: non-integer x = 1.252763
41: non-integer x = 1.864785
42: non-integer x = 2.140066
43: non-integer x = 2.944439
44: non-integer x = 1.252763
45: non-integer x = 3.139439
46: non-integer x = 2.772589
47: non-integer x = 1.945910
48: non-integer x = 2.505526
49: non-integer x = 3.157000
50: non-integer x = 3.828641

2) How can I save/dump/... the summary(glm.poisson) in a text file to
print ? I've tried

> write.table(summary(glm.poisson),"glm.poisson")
Error in as.data.frame.default(x[[i]], optional = TRUE) : 
        can't coerce summary.glm into a data.frame

and it doesn't work.

Regards and thanks

EJ

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list