Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Re: st: Predicted probabilities for logistic regression after svy
From
Saidé Salazar <[email protected]>
To
"[email protected]" <[email protected]>
Subject
Re: Re: st: Predicted probabilities for logistic regression after svy
Date
Thu, 19 Sep 2013 13:38:04 -0500
Ariel, thanks for the suggestion! Very helpful too!
Aranzazu
On Thu, Sep 19, 2013 at 9:31 AM, Ariel Linden, DrPH
<[email protected]> wrote:
> In addition to Richard's suggestion, you could use -margins-
>
> webuse nhanes2f, clear
> svy: logit diabetes age i.female
> margins female // will give probabilities for females and males
> margins r.female //will give the difference in the probabilities between
> females and males
>
>
>
> Date: Wed, 18 Sep 2013 18:28:10 -0500
> From: =?ISO-8859-1?Q?Said=E9_Salazar?= <[email protected]>
> Subject: st: Predicted probabilities for logistic regression after svy
>
> Dear Stata listers,
>
> I am running a logistic regression after svy. How could I get the
> predicted probabilities? (taking into account the complex structure of
> the survey). Thank you for your help!
>
> Aranzazu
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/faqs/resources/statalist-faq/
> * http://www.ats.ucla.edu/stat/stata/
>
> ------------------------------
>
> Date: Wed, 18 Sep 2013 20:15:05 -0500
> From: Richard Williams <[email protected]>
> Subject: Re: st: Predicted probabilities for logistic regression after svy
>
> At 06:28 PM 9/18/2013, Saidé Salazar wrote:
>>Dear Stata listers,
>>
>>I am running a logistic regression after svy. How could I get the
>>predicted probabilities? (taking into account the complex structure of
>>the survey). Thank you for your help!
>
> If it was me I would use the predict command. Is
> there some reason you don't want to do that? e.g.
>
> webuse nhanes2f, clear
> svy: logit diabetes age i.female
> predict prob
>
>
>
>
>
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/faqs/resources/statalist-faq/
> * http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/