Dear community, 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 ? Thanks a lot for your help ! -- View this message in context: http://r.789695.n4.nabble.com/glm-prediction-of-a-factor-with-several-levels-tp2300793p2300793.html Sent from the R help mailing list archive at Nabble.com.
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
As far as I know, glm only works with dichotomous or count data. polr in the MASS package works and so does lrm {Design} for ordinal dependent variables. I would assume that the model produced by glm is a dichotomous version of your model but not sure. Only one intercept would be given because if you used the log link then it would have produced a dichotomous model instead of an ordered logistic regression. My suggestion is to use polr or lrm. On Fri, Jul 23, 2010 at 6:15 PM, blackscorpio [via R] < ml-node+2300793-1751019155-246278@n4.nabble.com<ml-node%2B2300793-1751019155-246278@n4.nabble.com>> wrote:> Dear community, > 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 ? > Thanks a lot for your help ! > > > ------------------------------ > View message @ > http://r.789695.n4.nabble.com/glm-prediction-of-a-factor-with-several-levels-tp2300793p2300793.html > To unsubscribe from R, click here< (link removed) ==>. > > >-- Department of Public Administration University of Kansas 4060 Wesco Hall Office W Lawrence KS 66045-3177 Phone: (785) 813-1384 Email: zachmohr@gmail.com -- View this message in context: http://r.789695.n4.nabble.com/glm-prediction-of-a-factor-with-several-levels-tp2300793p2301324.html Sent from the R help mailing list archive at Nabble.com. [[alternative HTML version deleted]]
Maybe Matching Threads
- help with polytomous logistic regression
- Count number of different patterns (Polytomous variable)
- After writing data in MMF using SEXP structure, can i reference in R?
- Difference between R and SAS in Corcordance index in ordinal logistic regression
- Item Response Analysis