clear all set more off cd "E:\From hp\hp_D\DHS application\DHS 2019\Fellows data\MMdata" use MMPR71FL.DTA, clear ta sh11a keep if sh11a==1 // eligible for child development module keep if hv102==1 // de jure children gen wt=hv005/1000000 ta sh150 [iw=wt] ta sh151 [iw=wt] ta sh152 [iw=wt] ta sh153 [iw=wt] ta sh154 [iw=wt] ta sh155 [iw=wt] ta sh156 [iw=wt] ta sh157 [iw=wt] ta sh158 [iw=wt] ta sh159 [iw=wt] ta sh160 [iw=wt] gen discipline = 0 replace discipline=1 if sh150==1|sh151==1|sh152==1|sh153==1|sh154==1|sh155==1|sh156==1|sh157==1|sh158==1|sh159==1|sh160==1 ta discipline [iw=wt]