Skip to content
Prev 4205 / 20628 Next

factor / intiger

If a predictor is numeric/integer then it will usually be assigned one
parameter in the model (corresponding to a slope, change in
response/change in predictor).

If the predictor is a factor with k levels then there will usually be
(k-1) parameters for that predictor in the model.

In practice I think your model is going to fit better with the
predictors as factors but - see above - be much more complex, and the
AIC is one way of assessing that tradeoff.

Without knowing what the integers represent I can't really say which
approach is better. If you think there is a linear relationship
between the predictor(s) and the (log-odds of the) response, then you
may well be justified (perhaps others will disagree) in running the
predictors as numeric even though they happen to take only integer
values...

Dan
On Tue, Aug 3, 2010 at 9:43 AM, Sam <Sam_Smith at me.com> wrote: