Home » Data » Dataset use in Stata » Svy command, r(2000) error message, NFHS-3 India
Svy command, r(2000) error message, NFHS-3 India [message #4427] |
Tue, 26 May 2015 06:14 |
RenaM
Messages: 6 Registered: May 2015
|
Member |
|
|
Dear fellow users,
I use NFHS-3 (DHS India 2005-6), the children's file + women's domestic violence variables, and set up the survey variables in Stata accordingly, following
http://dhsprogram.com/faq.cfm and
http://userforum.dhsprogram.com/index.php?t=msg&th=1217& amp;start=0&S=221608a0f19ba7cd3b19146ec73a3903 :
gen weight=v005/1000000
egen strata = group(v024 v025), label
tab strata
svyset [pweight=weight], psu(v021) strata(strata)
Now, I would like to calculate statistics using the svy: commands, including svy: mean.
I ran for example, just to see if it works:
svy: mean hw70 (hw70 is Height for age standard deviation)
svy: mean hw1 (age in months)
Every time I do this, I get the following error message:
(running mean on estimation sample)
no observations
r(2000);
I researched online in stata forums as well as in this forum and could not find any useful hints.
Thank you very much for giving me advice.
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Sat Nov 9 15:27:16 Coordinated Universal Time 2024
|