Skip to content
Prev 295572 / 398506 Next

glm(weights) and standard errors

I'm confused (I bet David is too). First and last models are "the
same", what do SE's have to do with anything ?

naive <- glm(extra ~ group, data=sleep)
imputWrong <- glm(extra ~ group, data=sleep10)
imput <- glm(extra ~ group, data=sleep10,weights=rep(0.1,nrow(sleep10)))
lapply(list(naive,imputWrong,imput),anova)
sapply(list(naive,imuptWrong,imput),function(x) vcov(x)[1,1]/vcov(x)[2,2])
# or another way to see it  (adjust for the DF)
coef(summary(naive))[2,2] - sqrt(198)/sqrt(18) * coef(summary(imput))[2,2]
coef(summary(naive))[2,2] - sqrt(198)/sqrt(18) * coef(summary(imputWrong))[2,2]

Are you sure you are interpreting Wood et al. correctly ? (I haven't
read it, this is not rhetorical)
On Wed, May 23, 2012 at 7:49 PM, Steve Taylor <steve.taylor at aut.ac.nz> wrote: