Skip to content
Prev 45235 / 63424 Next

nobs() with glm(family="poisson")

Dear Milan and Steven,

At the risk of muddying the water further, I think that the potential confusion here is that Poisson GLMs are applied in two formally equivalent but substantively different situations: (1) where the counts are cells in a contingency table, in which case the Poisson GLM is used to fit an equivalent loglinear association model to the table; and (2) where the counts are observations on a non-negative integer response -- what's often called "Poisson regression." In the first case, but not the second, it makes sense to think of the sum of the counts as the natural sample size. I don't think that one can expect GLM software to distinguish these cases.

Best,
 John