Re: [R] glm output format

2010-06-05 Thread Allan Engelhardt
Look at help(tryCatch) and help(try). Hope this helps a little Allan On 05/06/10 04:21, Bojuan Zhao wrote: Hello, I am running a loop to compare some residual deviances obtained from glm, with codes: OUT-NULL for (i in 1:10){ myglm-glm(mat ~X1+X2+X3,family = binomial, data

[R] glm output format

2010-06-04 Thread Bojuan Zhao
Hello,   I am running a loop to compare some residual deviances obtained from glm, with codes:   OUT-NULL for (i in 1:10){  myglm-glm(mat ~X1+X2+X3,family = binomial, data =myDATA) OUT-c(OUT,myglm$deviance) }   ...   In the loop, X1, X2, and X3 chage with i. If X1, X2 and X3 are