The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Countries » Other countries » Any Anaemia Ghana DHS 2022 (I got a different value)
Re: Any Anaemia Ghana DHS 2022 [message #30663 is a reply to message #30661] Wed, 15 January 2025 20:49 Go to previous messageGo to previous message
backclac is currently offline  backclac
Messages: 28
Registered: August 2023
Member
Thank you
Please assist me with the syntax. I obtained my previous values by not dividing v005 by 1,000,000.
*DHS setup
*USING KR file for the 2008

*weighted

gen wt=v005

svyset [pweight=wt], strata(v023)psu(v021)

* dataset for only rural Ghana
tab v025
keep if v025==2
tab v025

*Outcome
tab hw57

**outcome variables**
**ALLanemia2**

tab hw57
* adding all forms of anemia together as one ALLanemia


recode hw57(1 2 3=1 "anemia") (4 9=0 "not_anemic"), gen (ALLanemia2)

tab ALLanemia2

*RESULT

RECODE of
hw57
(anemia
level) Freq. Percent Cum.

not_anemic 526 29.48 29.48
anemia 1,258 70.52 100.00

Total 1,784 100.00


According to the GDHS 2008 report, 1426 (84.1%)children were anemic in rural Ghana.


Kindly assist me with these syntaxes, for clarity. Thank you
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: PDHS 2017-18 Table 4.3: Age at first Marriage Table
Next Topic: Wealth Quintiles for Malawi DHS 2000
Goto Forum:
  


Current Time: Fri Jan 24 01:51:36 Coordinated Universal Time 2025