[R] Logistic Regression with 9 classes

Prof Brian D Ripley ripley at stats.ox.ac.uk
Thu Nov 28 18:01:56 CET 2002


You can't do `logistic regression' as usually defined with
more than two classes.  You can do multinomial logistic regression,
sometimes known as multiple logistic regression: use function multinom() in
package nnet (part of the VR bundle), most easily.

On Thu, 28 Nov 2002, someone purporting to be Luis Silva wrote:

> Hello!
>
> I need to classify a data set with 19 variables and 9 classes
> using Logistic Regression(on R).
> I know that when we have only 2 classes we can use glm() to
> estimate the coefficients of the model. But I don´t understand
> how can I do a classification task with Logistic Regression on
> a data set with 9 classes!
> Does anybody know how can I estimate these coefficients (of a
> model with 9 classes) on R?
>
> Thank you!
> Janete

That doesn't seem to match the mail address.

> sapo.pt/kitadsl

What does that mean?

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list