The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Child Health » Using svy: tab
Using svy: tab [message #8401] Fri, 23 October 2015 11:03 Go to previous message
lexgw is currently offline  lexgw
Messages: 31
Registered: October 2015
Location: United Kingdom
Member

Dear all, I am trying to learn how to run descriptive statistics in stata in order to replicate Uganda DHS 2011 statics on women and child health. I have two questions for help;
1. There are two ways of attaching weights to the variables and then tab:

gen wgt=v005/1000000
tab v025 [iweight=wgt]

This has worked and produced an output
type of |
place of |
residence | Freq. Percent Cum.
------------+-----------------------------------
urban | 1,717.2704 19.80 19.80
rural | 6,956.7296 80.20 100.00
------------+-----------------------------------
Total | 8,673.9999 100.00

Another method (recommended in DHS videos) is set for survey data and then tab

gen wgt=v005/1000000
svyset[pw=wgt], psu(v021) strata(v022) singleunit(centered)
svy:tab v025

this has not worked
pweight: wgt
VCE: linearized
Single unit: centered
Strata 1: v022
SU 1: v021
FPC 1: <zero>

. svy:tab v025
no observations
r(2000);
What could be the problem?

2. which variables are suitable to capture child health and which data file is suitable to use to get these variables?

Gabriel
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Age in months: Missing values
Next Topic: Running a regression with the KR file
Goto Forum:
  


Current Time: Tue Apr 13 07:25:12 Coordinated Universal Time 2021