Diana Marcela Martinez Ruiz
2012-Jul-06 17:50 UTC
[R] Help with multinomial regression to "survey"
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]]
On Sat, Jul 7, 2012 at 5:50 AM, Diana Marcela Martinez Ruiz <dianammr06 at hotmail.com> wrote:> I would like to know which function to use for modeling a multinomial > logistic regression model in the package "survey". thanksThere 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