Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: holding variables to weighted means with prvalue


From   Christine Brickman <cbrickman79@yahoo.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: holding variables to weighted means with prvalue
Date   Wed, 11 Aug 2010 07:43:17 -0700 (PDT)

I want to compute predicted values while holding variable at their weighted 
means.  Even though I'm weighting the regression, STATA is holding the variables 

at their unweighted means.  Here's my syntax:

svyset [pweight=weight]
svy: regress [VARLIST]
forvalues i = 0(1)1 {
                prvalue, x(male=`i') 
    }
 
Is there a way to hold all variables except male at their weighted means?
 
Thanks!
Christine



      

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index