-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path08_analysis_indepth.do
420 lines (291 loc) · 15.7 KB
/
08_analysis_indepth.do
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PURPOSE: WC - NCA Lashio Project
AUTHOR: Nicholus
CREATED: 02 Dec 2019
MODIFIED:
THINGS TO DO:
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
**----------------------------------------------------------------------------**
** import cleaned dataset: HH dataset
**----------------------------------------------------------------------------**
use "$cdta/respondent_cleanded.dta", clear
**----------------------------------------------------------------------------**
** WASH
**----------------------------------------------------------------------------**
// Drinking Water Soruce + Treatment
tab water_sum_limited wealth_quintile, chi2
tab water_rain_limited wealth_quintile, chi2
tab water_winter_limited wealth_quintile, chi2
tab water_sum_treat_yes wealth_quintile, chi2
tab water_rain_treat_yes wealth_quintile, chi2
tab water_winter_treat_yes wealth_quintile, chi2
// Sanitation
tab latrine_ladder wealth_quintile, chi2
// Handwashing
tab observ_washplace_no wealth_quintile, chi2
tab handwash_ladder wealth_quintile, chi2
tab handwash_critical wealth_quintile, chi2
// DDS - W
tab momdiet_min_ddsw wealth_quintile, chi2
mean momdiet_ddsw, over(wealth_quintile)
anova momdiet_ddsw wealth_quintile
ttest momdiet_ddsw if wealth_quintile < 3, by (wealth_quintile)
ttest momdiet_ddsw if wealth_quintile > 1 & wealth_quintile < 4, by (wealth_quintile)
ttest momdiet_ddsw if wealth_quintile > 2 & wealth_quintile < 5, by (wealth_quintile)
ttest momdiet_ddsw if wealth_quintile > 3, by (wealth_quintile)
clear
**----------------------------------------------------------------------------**
** import cleaned dataset: Child dataset
**----------------------------------------------------------------------------**
use "$cdta/child_cleanded.dta", clear
**----------------------------------------------------------------------------**
** Child - IYCF
**----------------------------------------------------------------------------**
// general breastfeeding
tab child_bf wealth_quintile, chi2
// exclusive breastfeeding
tab child_breastfeed_eibf wealth_quintile, chi2
// continious breastfeeding
tab child_breastfeed_cont_1yr wealth_quintile, chi2
tab child_breastfeed_cont_2yr wealth_quintile, chi2
// introduction of complementary feeding
tab childdiet_timely_cf wealth_quintile, chi2
// Dietary Diversity
tab childdiet_min_dds wealth_quintile, chi2
mean childdiet_dds, over(wealth_quintile)
anova childdiet_dds wealth_quintile
ttest childdiet_dds if wealth_quintile < 3, by (wealth_quintile)
ttest childdiet_dds if wealth_quintile > 1 & wealth_quintile < 4, by (wealth_quintile)
ttest childdiet_dds if wealth_quintile > 2 & wealth_quintile < 5, by (wealth_quintile)
ttest childdiet_dds if wealth_quintile > 3, by (wealth_quintile)
// Minimum meal frequency
tab childdiet_min_mealfreq child_bf, chi2
tab childdiet_min_mealfreq wealth_quintile, chi2
// Minimum meal frequency
tab childdiet_min_acceptdiet child_bf, chi2
tab childdiet_min_acceptdiet wealth_quintile, chi2
tab childdiet_min_acceptdiet wealth_quintile if wealth_quintile < 3, chi2
tab childdiet_min_acceptdiet wealth_quintile if wealth_quintile > 1 & wealth_quintile < 4, chi2
tab childdiet_min_acceptdiet wealth_quintile if wealth_quintile > 2 & wealth_quintile < 5, chi2
tab childdiet_min_acceptdiet wealth_quintile if wealth_quintile > 3, chi2
tab childdiet_iron_consum child_bf, chi2
tab childdiet_iron_consum wealth_quintile, chi2
// Immunization
tab child_vaccin_rpt wealth_quintile, chi2
tab complete_cv_rpt wealth_quintile, chi2
tab complete_cv_rpt wealth_quintile if wealth_quintile < 3, chi2
tab complete_cv_rpt wealth_quintile if wealth_quintile > 1 & wealth_quintile < 4, chi2
tab complete_cv_rpt wealth_quintile if wealth_quintile > 2 & wealth_quintile < 5, chi2
tab complete_cv_rpt wealth_quintile if wealth_quintile > 3, chi2
// Child Birthweight
tab child_low_birthweight wealth_quintile, chi2
mean child_birth_weight, over(wealth_quintile)
anova child_birth_weight wealth_quintile
ttest child_birth_weight if wealth_quintile < 3, by (wealth_quintile)
ttest child_birth_weight if wealth_quintile > 1 & wealth_quintile < 4, by (wealth_quintile)
ttest child_birth_weight if wealth_quintile > 2 & wealth_quintile < 5, by (wealth_quintile)
ttest child_birth_weight if wealth_quintile > 3, by (wealth_quintile)
**----------------------------------------------------------------------------**
** Child - Health
**----------------------------------------------------------------------------**
// Childhoold illness
tab child_ill_yes wealth_quintile, chi2
tab child_ill_treat wealth_quintile, chi2
tab child_ill_hp wealth_quintile, chi2
// Diarrhea
tab child_ill_diarrhea wealth_quintile, chi2
// Cough
tab child_ill_cough wealth_quintile, chi2
tab child_cough_treat wealth_quintile, chi2
tab child_cough_hp wealth_quintile, chi2
tab child_cough_loan wealth_quintile, chi2
tab child_ill_cough wealth_quintile if wealth_quintile < 3, chi2
tab child_ill_cough wealth_quintile if wealth_quintile > 1 & wealth_quintile < 4, chi2
tab child_ill_cough wealth_quintile if wealth_quintile > 2 & wealth_quintile < 5, chi2
tab child_ill_cough wealth_quintile if wealth_quintile > 3, chi2
tab child_cough_hp wealth_quintile if wealth_quintile < 3, chi2
tab child_cough_hp wealth_quintile if wealth_quintile > 1 & wealth_quintile < 4, chi2
tab child_cough_hp wealth_quintile if wealth_quintile > 2 & wealth_quintile < 5, chi2
tab child_cough_hp wealth_quintile if wealth_quintile > 3, chi2
tab child_cough_loan wealth_quintile if wealth_quintile < 3, chi2
tab child_cough_loan wealth_quintile if wealth_quintile > 1 & wealth_quintile < 4, chi2
tab child_cough_loan wealth_quintile if wealth_quintile > 2 & wealth_quintile < 5, chi2
tab child_cough_loan wealth_quintile if wealth_quintile > 3, chi2
// Fever
tab child_ill_fever wealth_quintile, chi2
tab child_fever_treat wealth_quintile, chi2
tab child_fever_hp wealth_quintile, chi2
tab child_fever_loan wealth_quintile, chi2
tab child_ill_fever wealth_quintile if wealth_quintile < 3, chi2
tab child_ill_fever wealth_quintile if wealth_quintile > 1 & wealth_quintile < 4, chi2
tab child_ill_fever wealth_quintile if wealth_quintile > 2 & wealth_quintile < 5, chi2
tab child_ill_fever wealth_quintile if wealth_quintile > 3, chi2
**----------------------------------------------------------------------------**
** Child - Malnutrtiion
**----------------------------------------------------------------------------**
// child age grouo
gen child_age_grp = .m
replace child_age_grp = 1 if child_age_05 == 1
replace child_age_grp = 2 if child_age_611 == 1
replace child_age_grp = 3 if child_age_1223 == 1
replace child_age_grp = 4 if child_age_2459 == 1
tab child_age_grp, m
// Stunting
anova haz06 wealth_quintile
ttest haz06 if wealth_quintile < 3, by (wealth_quintile)
ttest haz06 if wealth_quintile > 1 & wealth_quintile < 4, by (wealth_quintile)
ttest haz06 if wealth_quintile > 2 & wealth_quintile < 5, by (wealth_quintile)
ttest haz06 if wealth_quintile > 3, by (wealth_quintile)
ttest haz06 if child_age_grp < 3, by (child_age_grp)
ttest haz06 if child_age_grp > 1 & child_age_grp < 4, by (child_age_grp)
ttest haz06 if child_age_grp > 2, by (child_age_grp)
ttest haz06, by (child_sex)
tab stunt wealth_quintile, chi2
tab stunt child_sex, chi2
tab stunt child_age_grp, chi2
tab stunt child_sex if child_age_grp == 1, chi2 col
tab stunt child_sex if child_age_grp == 2, chi2 col
tab stunt child_sex if child_age_grp == 3, chi2 col
tab stunt child_sex if child_age_grp == 4, chi2 col
tab stunt child_sex if wealth_quintile == 1, chi2 col
tab stunt child_sex if wealth_quintile == 2, chi2 col
tab stunt child_sex if wealth_quintile == 3, chi2 col
tab stunt child_sex if wealth_quintile == 4, chi2 col
tab stunt child_sex if wealth_quintile == 5, chi2 col
tab sev_stunt child_sex, chi2
// Wasting
anova whz06 wealth_quintile
ttest whz06 if wealth_quintile < 3, by (wealth_quintile)
ttest whz06 if wealth_quintile > 1 & wealth_quintile < 4, by (wealth_quintile)
ttest whz06 if wealth_quintile > 2 & wealth_quintile < 5, by (wealth_quintile)
ttest whz06 if wealth_quintile > 3, by (wealth_quintile)
ttest whz06 if child_age_grp < 3, by (child_age_grp)
ttest whz06 if child_age_grp > 1 & child_age_grp < 4, by (child_age_grp)
ttest whz06 if child_age_grp > 2, by (child_age_grp)
ttest whz06, by (child_sex)
tab gam wealth_quintile, chi2
tab gam child_sex, chi2
tab gam child_age_grp, chi2
tab gam child_sex if child_age_grp == 1, chi2 col
tab gam child_sex if child_age_grp == 2, chi2 col
tab gam child_sex if child_age_grp == 3, chi2 col
tab gam child_sex if child_age_grp == 4, chi2 col
tab gam child_sex if wealth_quintile == 1, chi2 col
tab gam child_sex if wealth_quintile == 2, chi2 col
tab gam child_sex if wealth_quintile == 3, chi2 col
tab gam child_sex if wealth_quintile == 4, chi2 col
tab gam child_sex if wealth_quintile == 5, chi2 col
tab sam child_sex, chi2
// Underweight
anova waz06 wealth_quintile
ttest waz06 if wealth_quintile < 3, by (wealth_quintile)
ttest waz06 if wealth_quintile > 1 & wealth_quintile < 4, by (wealth_quintile)
ttest waz06 if wealth_quintile > 2 & wealth_quintile < 5, by (wealth_quintile)
ttest waz06 if wealth_quintile > 3, by (wealth_quintile)
ttest waz06 if child_age_grp < 3, by (child_age_grp)
ttest waz06 if child_age_grp > 1 & child_age_grp < 4, by (child_age_grp)
ttest waz06 if child_age_grp > 2, by (child_age_grp)
ttest waz06, by (child_sex)
tab under_wt wealth_quintile, chi2
tab under_wt child_sex, chi2
tab under_wt child_age_grp, chi2
tab under_wt child_sex if child_age_grp == 1, chi2 col
tab under_wt child_sex if child_age_grp == 2, chi2 col
tab under_wt child_sex if child_age_grp == 3, chi2 col
tab under_wt child_sex if child_age_grp == 4, chi2 col
tab under_wt child_sex if wealth_quintile == 1, chi2 col
tab under_wt child_sex if wealth_quintile == 2, chi2 col
tab under_wt child_sex if wealth_quintile == 3, chi2 col
tab under_wt child_sex if wealth_quintile == 4, chi2 col
tab under_wt child_sex if wealth_quintile == 5, chi2 col
tab sev_under_wt child_sex, chi2
clear
**----------------------------------------------------------------------------**
** import cleaned dataset: Mother dataset
**----------------------------------------------------------------------------**
use "$cdta/mom_health_cleanded.dta", clear
**----------------------------------------------------------------------------**
** Mother ANC
**----------------------------------------------------------------------------**
// ANC Visit
tab ancpast_yn wealth_quintile, chi2
tab ancpast_trained wealth_quintile, chi2
tab ancpast_trained wealth_quintile if wealth_quintile < 3, chi2
tab ancpast_trained wealth_quintile if wealth_quintile > 1 & wealth_quintile < 4, chi2
tab ancpast_trained wealth_quintile if wealth_quintile > 2 & wealth_quintile < 5, chi2
tab ancpast_trained wealth_quintile if wealth_quintile > 3, chi2
tab ancpast_trained wealth_quintile if wealth_quintile == 1 | wealth_quintile == 3 , chi2
tab ancpast_trained wealth_quintile if wealth_quintile == 1 | wealth_quintile == 4 , chi2
tab ancpast_trained wealth_quintile if wealth_quintile == 1 | wealth_quintile == 5 , chi2
tab ancpast_trained wealth_quintile if wealth_quintile == 2 | wealth_quintile == 3 , chi2
tab ancpast_trained wealth_quintile if wealth_quintile == 2 | wealth_quintile == 4 , chi2
tab ancpast_trained wealth_quintile if wealth_quintile == 2 | wealth_quintile == 5 , chi2
anova ancpast_trained_freq wealth_quintile
ttest ancpast_trained_freq if wealth_quintile < 3, by (wealth_quintile)
ttest ancpast_trained_freq if wealth_quintile > 1 & wealth_quintile < 4, by (wealth_quintile)
ttest ancpast_trained_freq if wealth_quintile > 2 & wealth_quintile < 5, by (wealth_quintile)
ttest ancpast_trained_freq if wealth_quintile > 3, by (wealth_quintile)
tab ancpast_trained_freq3 wealth_quintile, chi2
tab ancpast_trained_freq3 wealth_quintile if wealth_quintile == 1 | wealth_quintile == 2 , chi2
tab ancpast_trained_freq3 wealth_quintile if wealth_quintile == 1 | wealth_quintile == 3 , chi2
tab ancpast_trained_freq3 wealth_quintile if wealth_quintile == 1 | wealth_quintile == 4 , chi2
tab ancpast_trained_freq3 wealth_quintile if wealth_quintile == 1 | wealth_quintile == 5 , chi2
tab ancpast_trained_freq3 wealth_quintile if wealth_quintile == 2 | wealth_quintile == 3 , chi2
tab ancpast_trained_freq3 wealth_quintile if wealth_quintile == 2 | wealth_quintile == 4 , chi2
tab ancpast_trained_freq3 wealth_quintile if wealth_quintile == 2 | wealth_quintile == 5 , chi2
tab ancpast_trained_freq3 wealth_quintile if wealth_quintile == 4 | wealth_quintile == 1 , chi2
tab ancpast_trained_freq3 wealth_quintile if wealth_quintile == 4 | wealth_quintile == 2 , chi2
tab ancpast_trained_freq3 wealth_quintile if wealth_quintile == 4 | wealth_quintile == 3 , chi2
tab ancpast_trained_freq3 wealth_quintile if wealth_quintile == 4 | wealth_quintile == 5 , chi2
tab ancpast_trained_freq3 wealth_quintile if wealth_quintile == 5 | wealth_quintile == 1 , chi2
tab ancpast_trained_freq3 wealth_quintile if wealth_quintile == 5 | wealth_quintile == 2 , chi2
tab ancpast_trained_freq3 wealth_quintile if wealth_quintile == 5 | wealth_quintile == 3 , chi2
tab ancpast_trained_freq3 wealth_quintile if wealth_quintile == 5 | wealth_quintile == 4 , chi2
// ANC Cost
tab ancpast_cost wealth_quintile, chi2
anova ancpast_amount wealth_quintile
ttest ancpast_amount if wealth_quintile < 3, by (wealth_quintile)
ttest ancpast_amount if wealth_quintile > 1 & wealth_quintile < 4, by (wealth_quintile)
ttest ancpast_amount if wealth_quintile > 2 & wealth_quintile < 5, by (wealth_quintile)
ttest ancpast_amount if wealth_quintile > 3, by (wealth_quintile)
tab ancpast_borrow wealth_quintile, chi2
// ANC no visit
tab ancpast_no_important wealth_quintile, chi2
tab ancpast_no_important wealth_quintile if wealth_quintile == 3 | wealth_quintile == 1 , chi2
tab ancpast_no_important wealth_quintile if wealth_quintile == 3 | wealth_quintile == 2 , chi2
tab ancpast_no_important wealth_quintile if wealth_quintile == 3 | wealth_quintile == 4 , chi2
tab ancpast_no_important wealth_quintile if wealth_quintile == 3 | wealth_quintile == 5 , chi2
tab ancpast_no_finance wealth_quintile, chi2
tab ancpast_no_finance wealth_quintile if wealth_quintile == 3 | wealth_quintile == 1 , chi2
tab ancpast_no_finance wealth_quintile if wealth_quintile == 3 | wealth_quintile == 2 , chi2
tab ancpast_no_finance wealth_quintile if wealth_quintile == 3 | wealth_quintile == 4 , chi2
tab ancpast_no_finance wealth_quintile if wealth_quintile == 3 | wealth_quintile == 5 , chi2
// Diet Restriction
tab ancpast_restrict wealth_quintile, chi2
// B1 supplementation
tab ancpast_bone wealth_quintile, chi2
// IFA supplementation
tab ancpast_rion wealth_quintile, chi2
tab ancpast_iron_cost wealth_quintile, chi2
**----------------------------------------------------------------------------**
** Mother Delivery
**----------------------------------------------------------------------------**
// Delivery with health personnel
tab deliv_trained wealth_quintile, chi2
tab deliv_institute wealth_quintile, chi2
tab deliv_place_home wealth_quintile, chi2
tab deliv_cost wealth_quintile, chi2
tab deliv_cost_loan wealth_quintile, chi2
**----------------------------------------------------------------------------**
** PNC and NBC
**----------------------------------------------------------------------------**
// PNC visit
tab pnc_trained wealth_quintile, chi2
tab pnc_bone wealth_quintile, chi2
tab pnc_cost_rpt wealth_quintile, chi2
tab pnc_cost_loan_rpt wealth_quintile, chi2
// NBC visit
tab nbc_2days_trained wealth_quintile, chi2
tab nbc_cost wealth_quintile, chi2
tab nbc_cost_loan wealth_quintile, chi2