search for: sleep10

Displaying 1 result from an estimated 1 matches for "sleep10".

2012 May 22
1
glm(weights) and standard errors
...sing the weights argument has no effect on the standard errors. Compare the following; is there a way to get the first and last models to produce the same results? data(sleep) coef(summary(glm(extra ~ group, data=sleep))) coef(summary(glm(extra ~ group, data=sleep, weights=rep(10L,nrow(sleep))))) sleep10 = sleep[rep(1:nrow(sleep),10),] coef(summary(glm(extra ~ group, data=sleep10))) coef(summary(glm(extra ~ group, data=sleep10, weights=rep(0.1,nrow(sleep10))))) My reason for asking is so that I can fit a model to a stacked multiple imputation data set, as suggested by: Wood, A. M., White, I. R. a...