Re: [R] deviance in GLM vs. summary.glm

2017-05-31 Thread Berwin A Turlach
Dear Yi, On Wed, 31 May 2017 04:53:25 + (UTC) array chip via R-help wrote: > Hi, I am running a logistic regression on a simple dataset (attached) > using glm: [...] As you can see, the interaction term is very > insignificant (p = 0.996)! Well, all terms are not significant (actually, AFA

[R] deviance in GLM vs. summary.glm

2017-05-30 Thread array chip via R-help
Hi, I am running a logistic regression on a simple dataset (attached) using glm: > dat<-read.table("dat.txt",sep='\t',header=T) If I use summary() on a logistic model: > summary(glm(y~x1*x2,dat,family='binomial')) Coefficients:            Estimate Std. Error z value Pr(>|z|)(Intercept)     19.57