Multinomial Logistic Regression with Complex Survey using 'Survey' Package in R

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Multinomial Logistic Regression with Complex Survey using 'Survey' Package in R

Mackenzie Jones
Dear R Users,

I want to use a multinomial logistic regression model with survey data in the “survey” package. The original package did not have a function for multinomial logistic regression, so Thomas Lumley suggested creating replicate weights for the survey and doing a multinomial regression with frequency weights in the mlogit package. See the below message for reference:

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.

However, there has been a more recent release of the “survey” package in May 2018, so I am wondering if there is now a function that does multinomial logistic regression with the survey. Please let me know if anyone knows of this update, or has any additional advice on how to perform this function.

Thank you,
Mackenzie


        [[alternative HTML version deleted]]

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
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: Multinomial Logistic Regression with Complex Survey using 'Survey' Package in R

ajdamico
hi, check out the news page..
https://cran.r-project.org/web/packages/survey/NEWS

On Tue, Jun 19, 2018 at 5:54 PM, Mackenzie Jones <[hidden email]>
wrote:

> Dear R Users,
>
> I want to use a multinomial logistic regression model with survey data in
> the “survey” package. The original package did not have a function for
> multinomial logistic regression, so Thomas Lumley suggested creating
> replicate weights for the survey and doing a multinomial regression with
> frequency weights in the mlogit package. See the below message for
> reference:
>
> 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.
>
> However, there has been a more recent release of the “survey” package in
> May 2018, so I am wondering if there is now a function that does
> multinomial logistic regression with the survey. Please let me know if
> anyone knows of this update, or has any additional advice on how to perform
> this function.
>
> Thank you,
> Mackenzie
>
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> [hidden email] mailing list -- To UNSUBSCRIBE and more, see
> 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.
>

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
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: Multinomial Logistic Regression with Complex Survey using 'Survey' Package in R

Bert Gunter-2
In reply to this post by Mackenzie Jones
Did you download the new package and check? Is there some reason you
shouldn't do this in any case?

There is also usually a News file in the package download that tells you
about new features.

-- Bert



Bert Gunter

"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )

On Tue, Jun 19, 2018 at 2:54 PM, Mackenzie Jones <[hidden email]>
wrote:

> Dear R Users,
>
> I want to use a multinomial logistic regression model with survey data in
> the “survey” package. The original package did not have a function for
> multinomial logistic regression, so Thomas Lumley suggested creating
> replicate weights for the survey and doing a multinomial regression with
> frequency weights in the mlogit package. See the below message for
> reference:
>
> 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.
>
> However, there has been a more recent release of the “survey” package in
> May 2018, so I am wondering if there is now a function that does
> multinomial logistic regression with the survey. Please let me know if
> anyone knows of this update, or has any additional advice on how to perform
> this function.
>
> Thank you,
> Mackenzie
>
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> [hidden email] mailing list -- To UNSUBSCRIBE and more, see
> 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.
>

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
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.