Quantcast

Regression with nominal data

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Regression with nominal data

soeren.vogel
Hi,

y is nominal (3 categories), x1 to 3 is scale. What I want is a  
regression, showing the probability to fall in one of the three  
categories of y according to the x. How can I perform such a  
regression in R?

Thanks for your help

Sören

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Regression with nominal data

D. Rizopoulos
check:

help("multinom", package = "nnet")


I hope it helps.

Best,
Dimitris


[hidden email] wrote:

> Hi,
>
> y is nominal (3 categories), x1 to 3 is scale. What I want is a
> regression, showing the probability to fall in one of the three
> categories of y according to the x. How can I perform such a regression
> in R?
>
> Thanks for your help
>
> Sören
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

--
Dimitris Rizopoulos
Assistant Professor
Department of Biostatistics
Erasmus University Medical Center

Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands
Tel: +31/(0)10/7043399
Fax: +31/(0)10/7044657

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Regression with nominal data

paulandpen
In reply to this post by soeren.vogel
Soren,

It sounds like you are new to R so I will refer you to some packages that I think some people would find more user friendly as beginners.  

Zelig is excellent.  You could run a series of logistic regressions coding your dependent variables as follows (a versus b, a versus c, b versus c)  

See the website below

http://gking.harvard.edu/zelig/docs/index.html

Alternatively you could try Rattle

See the website below

http://rattle.togaware.com/rattle-features.html

Or you could try Rcmder

HTH Paul


> [hidden email] wrote:
>
> Hi,
>
> y is nominal (3 categories), x1 to 3 is scale. What I want is a  
> regression, showing the probability to fall in one of the three  
> categories of y according to the x. How can I perform such a  
> regression in R?
>
> Thanks for your help
>
> Sören
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Loading...