Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: RE: Adjusted Proportion


From   "Virgile CAPO-CHICHI" <[email protected]>
To   [email protected]
Subject   Re: st: RE: Adjusted Proportion
Date   Tue, 15 Mar 2005 23:11:13 -0600

Thanks Yulia, Virgile

> Virgile wrote:
> 
> >Does anyone out there know how to produce adjusted proportions from a
> >logistic regression with weighted data? Apparently adjprop does not
> >work with weights. Thanks, Virgile
> 
> I think you can use the combination of -svymean- and -adjust- 
commands to
> get the adjusted probabilities for weighted data. For example,
> 
>  sysuse auto, clear
>  svyset [pw=turn]
>  svymean mpg
>  local mean=_b[mpg]
>  svylogit for mpg
>  adjust mpg=`mean', p
> 
> If you use other than sampling weights you can do -summarize- to get a
> weighted mean instead of -svymean-.
> 
>  sysuse auto, clear
>  summ mpg [fw=turn]
>  local mean=r(mean)
>  logit for mpg
>  adjust mpg=`mean', p
> 
> --Yulia
> [email protected]
> 
> 
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
> 
> 

-- 

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index