R における Generalized Linear Models
Richard Erickson
Instructor


離散整数:x = 0, 1, 2, 3, ...
平均・分散パラメータ$\lambda$
$P(x) = \frac{\lambda^x e^{-\lambda}}{x!}$
固定の面積・時間(例:1試合あたりのゴール)
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