[R] glm - prediction of a factor with several levels

Ben Bolker bbolker at gmail.com
Sat Jul 24 17:52:52 CEST 2010


blackscorpio <olivier.collignon <at> live.fr> writes:

> I'm currently attempting to predict the occurence of an event (factor)
> having more than 2 levels with several continuous predictors. The model
> being ordinal, I was waiting the glm function to return several intercepts,
> which is not the case when looking to my results (I only have one
> intercept). I finally managed to perform an ordinal polytomous logisitc
> regression with the polr function, which gives several intercepts.
> But does anyone know what was the model performed with glm and why only one
> intercept was given ?

  It's not sufficiently clear (to me at least) what you're trying to
do.  Please provide a minimal reproducible example ... As far as I know,
polr is the right way to do ordinal regression; it's not clear how you
were trying to use glm to do it.

  Ben Bolker



More information about the R-help mailing list