Derivation
variable: wfh (table[s]: derived)
variable: SD2neg (table[s]: who_bmi_z_scores_month)
WHO standards for weight for height in children by month of age are used to assess malnutrition in children
merge m:1 age_m sex using ${nutdata}\who_bmi_z_scores_month, keep(master match)
gen malnut=0 if wfh~=.
replace malnut=1 if wfh<SD2neg & wfh~=. & SD2neg~=.
replace malnut=1 if wfh<18.5 & age_y>=18