Skip to content
Prev 275842 / 398506 Next

GLM Help

Are you sure your variables are categorical or numeric? Of course, glm
differentiates these two kinds of variables. For example, I ran the
same variable with different modes, the results are very different.
Call:  glm(formula = y ~ xf, family = poisson, data = dat)

Coefficients:
(Intercept)          xf2          xf3          xf4
    1.60944     -0.12783     -0.11878     -0.09746

...
Call:  glm(formula = y ~ as.numeric(xf), family = poisson, data = dat)

Coefficients:
   (Intercept)  as.numeric(xf)
       1.59047        -0.02673


Weidong Gu
On Fri, Oct 28, 2011 at 4:21 PM, CES <smit4155 at umn.edu> wrote: