The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use (other programs) » NFHs-5, table 11.17 problems (R code results not matching with table)
Re: NFHs-5, table 11.17 problems [message #24849 is a reply to message #24823] Wed, 20 July 2022 16:35 Go to previous messageGo to previous message
Janet-DHS is currently offline  Janet-DHS
Messages: 698
Registered: April 2022
Senior Member
Following is a response from DHS Research & Data Analysis Director, Tom Pullum:

Because the units of analysis are households, I looked for the relevant variables in the HR file. They are survey-specific variables sh73 and sh74*. You can get the table (except for recoding the states into groups) with the following commands

use hv005 hv024 sh73 sh74* using "....IAHR7AFL.DTA", clear

tab1 sh73 sh74*
label list SH73

gen not_public=0
replace not_public=100 if sh73>=30

local letters a b c d e x
foreach ll of local letters {
gen sh74`ll'_100=sh74`ll'*100
}

tabstat not_public sh74*_100 [fweight=hv005], statistics(mean) by(hv024) format(%6.1f)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Respondent's sex NFHS-5
Next Topic: Table 11.20 NFHS-5
Goto Forum:
  


Current Time: Fri Apr 26 18:53:29 Coordinated Universal Time 2024