能否请LS的再讲的详细一些,下面的是HELP里的一个EXAMPLE,那么它的计算过程到底是什么样的呢?是用LINK函数把POISSON的残差转化为正态然后进行回归的么?
counts <- c(18,17,15,20,10,20,25,13,12)
outcome <- gl(3,1,9)
treatment <- gl(3,3)
print(d.AD <- data.frame(treatment, outcome, counts))
glm.D93 <- glm(counts ~ outcome + treatment, family=poisson())
anova(glm.D93)
summary(glm.D93)
另外,LM和GLM还有GAM的差别还是没弄懂