The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in Stata » Food security measurement from Nepal DHS2011
Re: Food security measurement from Nepal DHS2011 [message #8207 is a reply to message #8201] Fri, 11 September 2015 12:31 Go to previous messageGo to previous message
sohelruhrd is currently offline  sohelruhrd
Messages: 19
Registered: July 2014
Location: Bangladesh
Member

Thanks for sending the response file.

I used the following STATA code to estimate different levels of food insecurity form Nepal DHS 2011 household record dataset. I was able to estimate food security. But, different levels of food insecurity is not matching with Table 2.17 (page 37). Could you please help me in this regards.


clear all
use "C:\dhs\data\NPHR60FL.DTA", clear
set more off
gen fsecurity=1 if ((sh130==0 | sh130==1) & sh131==0 & sh132==0 & sh133==0 & sh134==0 & sh135==0 & sh136==0)
replace fsecurity=2 if ((sh130==2 | sh130==3 | sh131==1 | sh131==2 | sh131==3 | sh132==1) & sh133==0 & sh134==0 & sh135==0 & sh136==0)
replace fsecurity=3 if ((sh130==2 | sh130==3 | sh131==1 | sh131==2 | sh131==3 | sh132==2 | sh132==3 | sh133==1 | sh133==2 | sh134==1 | sh134==2 ) & sh135==0 & sh136==0)
replace fsecurity=4 if (sh130==2 | sh130==3 | sh131==2 | sh131==3 | sh132==2 | sh132==3 | sh133==3 | sh134==3 | sh135==1 | sh135==2 | sh135==3 | sh136==1 | sh136==2 | sh136==3)
tab fsecurity
tab fsecurity [iw=hv005]


Thank you.
 
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: How to carry out Individual Meta-analysis of DH surveys in sub-Saharan Africa using Stata
Next Topic: Cluster level population density data (Geospatial Covariate Datasets)
Goto Forum:
  


Current Time: Wed Jul 10 05:35:27 Coordinated Universal Time 2024