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

st: RE: Adjusted Proportion

From   "Yulia Marchenko" <>
To   <>
Subject   st: RE: Adjusted Proportion
Date   Tue, 15 Mar 2005 17:19:22 -0600

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


*   For searches and help try:

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