* Intialize ARI variable - only for living children gen ari=0 if b5==1 * ARI is defined as children with a cough with short rapid breaths (h31b==1) and congestion in the chest (h31c==1 | h31c==3) replace ari=1 if b5==1 & h31b==1 & (h31c==1 | h31c==3)
gen ari_treat = 0 if ari==1 * All public or private facilities, except for pharmacies (g & k) and shops (s), traditional healers (t) and other non-medical facilities (u-x) foreach x in a b c d e f h i j l m n o p q r { replace ari_treat = 1 if ari==1 & h32`x'==1 }
replace ari_treat = 1 if ari==1 & (h32a==1 | h32b==1 | h32c==1 ... h32r==1)