wengxyu1030 / DHS-Recode-VII

1 stars 5 forks source link

Task 01: Expand Variables #24

Closed robin-wang closed 2 years ago

robin-wang commented 3 years ago

Create variables, to be in line with MICS6

[REMOVED- [x] c_stuund - Child under five both stunted and underweight [MICS6 9 child anthropo] Child under five both stunted and underweight, i.e.: gen c_stuund = (c_stunted == 1 & c_underweight ==1) ; replace c_stunted == . if c_stunted == . | c_underweight == . ; label var c_sttund “1 if child both stunted and underweight”

Let’s include the weight-for-age and height-for-age z-scores from MICS and call these variables c_wfa and c_hfa (and rename hc70 and hc71 in the DHS datasets accordingly). Let’s also add the weight-for-height scores from both surveys, naming them c_wfh. DW: rename actions undertaken in Master file directly before quality control use hc72 from hm data, edited in 9_child_anthropometrics, renamed directly before quality control

robin-wang commented 3 years ago

RW implemented on 04 Nov, to be tested.

robin-wang commented 3 years ago

Update 1106: To be further updated per new implementation on mics6

robin-wang commented 2 years ago

@wengxyu1030 Here is the issue we used for additional vars. The list in label_var.do is most comprehensive:https://github.com/wengxyu1030/DHS-Recode-VII/blob/master/Label_var.do

I select and paste the additional ones we added below:

label var c_anc_pub "15-49y among ANC users had antenatal care in public facilities" label var c_anc_hosp "15-49y among ANC users had antenatal care in hospital setting"

label var c_underweight "0-4y WfA <-2 std.dev. from median (WHO) (1/0)" label var c_stunted "0-4y HfA <-2 std.dev. from median (WHO) (1/0)" label var c_wasted "0-4y WfH <-2 std.dev. from median (WHO) (1/0)" label var c_underweight_sev "0-4y WfA <-3 std.dev. from median (WHO) (1/0)" label var c_stunted_sev "0-4y HfA <-3 std.dev. from median (WHO) (1/0)" label var c_wasted_sev "0-4y WfH <-3 std.dev. from median (WHO) (1/0)"

    label var w_married "Marital Status"
    label var c_vaczero "Child: Not Received Any Vaccination"
    label var c_stu_was "Child: Child under five both stunted and wasted"
    label var c_stu_was_sev "Child: Child under five both severely stunted and severely wasted"
    label var c_motherln "The line number of the mother for each kid"
    label var c_hfa "Child: 0-4y HfA std.dev. from median (WHO), hc70"
    label var c_wfa "Child: 0-4y WfA std.dev. from median (WHO), hc71"
    label var c_wfh "Child: 0-4y WfH std.dev. from median (WHO)"    
    label var hm_birthorder "Birth Order"
    label var c_magebrt "Age of the mother at the child’s birth, based on hw1 and v012"
    cap label var hh_religion "Head of Household Religion"
    label var hh_watersource "Water Source"
    label var hh_toilet "Toilet type"
wengxyu1030 commented 2 years ago

Compared the codebook and the data output, below are the new variables added:

<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">

--- c_anc_hosp c_anc_public c_illness2 c_illtreat2 c_magebrt c_motherln c_stu_was c_stu_was_sev c_stunted_sev c_underweight_sev c_vaczero c_wasted c_wasted_sev hh_country_code hh_religion hh_toilet hh_watersource hm_birthorder hvidx w_mammogram_age w_mammogram_ref w_married w_papsmear_age w_papsmear_ref