The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Countries » India » Mismatch between National report and NFHS4 raw data analysis
Re: Mismatch between National report and NFHS4 raw data analysis [message #16262 is a reply to message #16259] Wed, 05 December 2018 11:30 Go to previous messageGo to previous message
fredarnold is currently offline  fredarnold
Messages: 45
Registered: March 2014
Member
The Stata code below matches the denominator in the NFHS-4 report:

gen age = v008 b3
gen xweight = v005/1000000
tabulate age if age < 24 [iw=xweight]

age | Freq. Percent Cum.
------------+-----------------------------------
0 | 1,629.0776 1.66 1.66
1 | 3,670.6754 3.75 5.41
2 | 3,935.1411 4.02 9.42
3 | 4,126.8893 4.21 13.64
4 | 4,405.3671 4.50 18.13
5 | 4,464.9622 4.56 22.69
6 | 4,501.2567 4.59 27.28
7 | 4,415.1894 4.51 31.79
8 | 4,631.844 4.73 36.51
9 | 4,300.8026 4.39 40.90
10 | 4,114.4416 4.20 45.10
11 | 3,905.3321 3.99 49.09
12 | 4,205.2019 4.29 53.38
13 | 4,226.0275 4.31 57.69
14 | 4,074.5033 4.16 61.85
15 | 4,041.3627 4.12 65.97
16 | 4,252.8293 4.34 70.31
17 | 4,150.9773 4.24 74.55
18 | 4,489.1452 4.58 79.13
19 | 4,189.1484 4.28 83.41
20 | 4,192.2816 4.28 87.69
21 | 4,265.4102 4.35 92.04
22 | 4,003.8333 4.09 96.12
23 | 3,797.2187 3.88 100.00
------------+-----------------------------------
Total | 97,988.918 100.00
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: HIV 2015 dataset and weight
Next Topic: Multilevel modeling in DHS-Sri Lanka
Goto Forum:
  


Current Time: Mon Nov 25 10:15:25 Coordinated Universal Time 2024