Help with multinomial regression to "survey"

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Help with multinomial regression to "survey"

Diana Marcela Martinez Ruiz

I would like to know which function to use for modeling a multinomial logistic regression model in the package "survey". thanks    
        [[alternative HTML version deleted]]

______________________________________________
[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
|

Re: Help with multinomial regression to "survey"

Thomas Lumley-2
On Sat, Jul 7, 2012 at 5:50 AM, Diana Marcela Martinez Ruiz
<[hidden email]> wrote:
> I would like to know which function to use for modeling a multinomial
> logistic regression model in the package "survey". thanks

There isn't an implementation of multinomial regression in the survey
package.  The easiest way to do this would be to create replicate
weights for your survey if it doesn't already have them (with
as.svrepdesign()) and then use withReplicates() to do the regression
using a function that does multinomial regression with frequency
weights, such as mlogit() in the mlogit package.  The example on the
withReplicates() help page shows how to do this for quantile
regression, and it should be similar.

   -thomas

--
Thomas Lumley
Professor of Biostatistics
University of Auckland

______________________________________________
[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.