use KEPR7AFL.dta, clear
gen micmalpos=0
replace micmalpos=(hml32==1)
lab var micmalpos "Parasitemia (via microscopy)"
gen rdtmalpos=0
replace rdtmalpos=(hml35==1)
lab var rdtmalpos "Parasitemia (via RDT) "
* Proportion of children 6 months to 14 years with malaria infection (RDT)
tab rdtmalpos if shml16a>=6 & shml16a<=179 & hv103==1 & hml33==0 & hml35!=6 [iweight=wgt]
* Proportion of children 6 months to 14 years with malaria infection (microscopy)
tab micmalpos if shml16a>=6 & shml16a<=179 & hv103==1 & (hml32==0|hml32==1) [iweight=wgt]
]]>