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, da
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
2 matches
Mail list logo