Bookmark and Share

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]

st: svy + aweights


From   Jeph Herrin <[email protected]>
To   [email protected]
Subject   st: svy + aweights
Date   Thu, 10 Nov 2011 13:46:50 -0500


I am analyzing NHANES data (see manual page for -svyset-) using -svy-
commands. My complication is that I am using the subset of subjects for
which there is activity monitoring, and the number of days monitored varies
from 1 to 8. So - to be clear - for some subjects I have 1 day of monitoring,
and for some I have 2 days, some I have 3, etc. My dependent variable of
interest is daily average activity levels, but I would like this to be
weighted by the number of days monitored. (This is important because there
seems to be a clear relationship between days monitored and age, race, etc).

How do I incorporate this additional level of weighting? For instance,
if I use

  svy : mean depvar [aw=days]

I get an error that weights are not reported.

thanks,
Jeph
*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index