R에서 Generalized Linear Models
Richard Erickson
Instructor


이산 정수: x = 0, 1, 2, 3, ...
평균 및 분산 파라미터 $\lambda$
$P(x) = \frac{\lambda^x e^{-\lambda}}{x!}$
고정된 면적/시간 (예: 경기당 득점)
dpois(x = ..., lambda = ...)
glm(y ~ x, data = dat, family = 'poisson')
formula = y ~ xformula = y ~ x - 1선수 간 차이를 알고 싶다면 비교 방법 사용:
glm(goal ~ player, data = scores, family = "poisson")
선수별 평균을 알고 싶다면 절편 방법 사용:
glm(goal ~ player - 1, data = scores, family = "poisson")
R에서 Generalized Linear Models