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 #23501 is a reply to message #8254] Wed, 29 September 2021 02:49 Go to previous messageGo to previous message
Sajhama is currently offline  Sajhama
Messages: 28
Registered: July 2017
Member
Dear Bridgette,

I am trying to generate the four levels of food insecurity for Nepal 2011. I followed the code provided by manager Ms. Anju, however, the data it gave me doesn't match with that of Nepal DHS 2011 report.

Therefore, I ran the code given by you, however it is still same, there isn't change in number (in SPSS)
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 (sh132==2 | sh132==3 | sh133==1 | sh133==2 | sh134==1 | sh134==2 ) & sh135==0 & sh136==0
replace fsecurity=4 if (sh133==3 | sh134==3 )| (sh135==1 | sh135==2 | sh135==3 | sh136==1 | sh136==2 | sh136==3)
tab fsecurity [iw=hv005/1000000]

Please let me know.

Look forward
 
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 Dec 18 13:34:15 Coordinated Universal Time 2024