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

2010-07-26 Thread blackscorpio
"when the first level denotes failure and all others success" Yes, I saw this sentence in the glm help file, but I hadn't understood it this way... Anyway I checked this with a few examples and this is exactly what it does. Thanks a lot for your help !!! I can go back now to the polr function a

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

2010-07-26 Thread Marc Schwartz
On Jul 26, 2010, at 4:18 AM, blackscorpio wrote: > > Thanks a lot for your anwers. > To Ben Bolker : I am trying to perform an ordinal logistic regression to > predict an Y 3-class variable, having observed 3 continous predictors V1, > V2, V3. > With random data my code would be something like :

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

2010-07-26 Thread blackscorpio
Thanks a lot for your anwers. To Ben Bolker : I am trying to perform an ordinal logistic regression to predict an Y 3-class variable, having observed 3 continous predictors V1, V2, V3. With random data my code would be something like : # simulate 10 observations of 3 independant N(0,1) predict

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

2010-07-24 Thread zachmohr
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

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

2010-07-24 Thread Ben Bolker
blackscorpio 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

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

2010-07-23 Thread blackscorpio
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 o