Hi, how can I do multinomial logistic regression in R? I think glm() can only handle binary response variable, and polr() can only handle ordinal response variable. how to do logistic regression with multinomial response variable? Thanks __________________________________
array chip wrote:> I think glm() can only handle binary response > variable,That's not true, have you looked at ?glm and ?family ? HTH, Kevin -- Ko-Kang Kevin Wang PhD Student Centre for Mathematics and its Applications Building 27, Room 1004 Mathematical Sciences Institute (MSI) Australian National University Canberra, ACT 0200 Australia Homepage: http://wwwmaths.anu.edu.au/~wangk/ Ph (W): +61-2-6125-2431 Ph (H): +61-2-6125-7407 Ph (M): +61-40-451-8301
On 23 Sep 2004, at 01:36, array chip wrote:> Hi, how can I do multinomial logistic regression in R? > I think glm() can only handle binary response > variable, and polr() can only handle ordinal response > variable. how to do logistic regression with > multinomial response variable?Perhaps multinom() in package nnet (in bundle VR) will do what you want? Regards, David> > Thanks > > > > __________________________________ >> ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html
hi all, you could have look at the library(VGAM). http://www.stat.auckland.ac.nz/~yee/VGAM/ hope this helps P.BADY At 17:36 22/09/2004 -0700, array chip wrote:>Hi, how can I do multinomial logistic regression in R? >I think glm() can only handle binary response >variable, and polr() can only handle ordinal response >variable. how to do logistic regression with >multinomial response variable? > >Thanks > > > >__________________________________ >>______________________________________________ >R-help@stat.math.ethz.ch mailing list >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide! http://www.R-project.org/posting-guide.htmlPierre BADY <°)))))>< Université Claude Bernard Lyon 1 UMR CNRS 5023, LEHF bat Alphonse Forel 43 boulevard du 11 novembre 1918 F-69622 VILLEURBANNE CEDEX FRANCE TEL : +33 (0)4 72 44 62 34 FAX : +33 (0)4 72 43 28 92 MEL : pierre.bady@univ-lyon1.fr http://limnologie.univ-lyon1.fr [[alternative HTML version deleted]]