R glm()

Jmnote (토론 | 기여)님의 2019년 4월 5일 (금) 22:57 판 (Jmnote님이 R glm() 문서를 R언어 glm() 문서로 이동했습니다)

1 개요

R glm()
R
Copy
counts <- c(18,17,15,20,10,20,25,13,12)
outcome <- gl(3,1,9)
treatment <- gl(3,3)
z <- glm(counts ~ outcome + treatment, family = poisson())
anova(z)
if(0)"
Analysis of Deviance Table

Model: poisson, link: log

Response: counts

Terms added sequentially (first to last)


          Df Deviance Resid. Df Resid. Dev
NULL                          8    10.5814
outcome    2   5.4523         6     5.1291
treatment  2   0.0000         4     5.1291
"

2 참고