The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Countries » India » Cancer screening (Cervical cancer )
Re: Cancer screening [message #25606 is a reply to message #25538] Wed, 16 November 2022 09:43 Go to previous messageGo to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3126
Registered: February 2013
Senior Member
Following is a response from Senior DHS staff member, Tom Pullum:

The following code will reproduce the percentages in the "Cervix" column of table 12.7. In order to match the report, you must include "m" (for "missing" or "NA") in the tab commands. It could be argued that those cases should NOT be included in the denominators for the percentages. However, to get a match you have to do that.

I include the recodes for age and schooling; you can do the recode for religion of head = "other".

use "...IAPR7DFL.DTA", clear

keep if hv105>=15 & hv105<=49
gen age=1
replace age=2 if hv105>=20
replace age=3 if hv105>=25
replace age=4 if hv105>=35
label define age 1 "15-19" 2 "20-24" 3 "25-34" 4 "35-49"
label values age age

gen schooling=0
replace schooling=1 if hv108>=1
replace schooling=2 if hv108>=5
replace schooling=3 if hv108>=8
replace schooling=4 if hv108>=10
replace schooling=5 if hv108>=12
replace schooling=6 if hv108==98
label define schooling 0 "None" 1 "1-5" 2 "5-7" 3 "8-9" 4 "10-11" 5 "12" 6 "DK" 
label values schooling schooling

tab shb79 if hv104==2 & hv105>=15 & hv105<=49 [iweight=hv005/1000000], m


local lcovariates age hv025 schooling sh47 sh49 hv270
foreach lc of local lcovariates {
tab `lc' shb79 if hv104==2 & hv105>=15 & hv105<=49 [iweight=hv005/1000000], m row
}
 
Read Message
Read Message
Read Message
Previous Topic: Caste data for 2019-21
Next Topic: anaemia in children
Goto Forum:
  


Current Time: Mon Aug 12 01:27:08 Coordinated Universal Time 2024