National Family Health Survey - India_NFHS
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
View this failed invocation of the CLA check for more information.
For the most up to date status, view the checks section at the bottom of the pull request.
Dear Users, For the NFHS 5 Children's recode on Child Health data I have used the code shared by Shireen and it worked well. However, it is not matching with National report (76.4%). The created estimate is 61.6%. Please help. Code given below!
`* Source of vaccination information. We need this variable to code vaccination indicators by source. recode h1 (1=1 "card") (else=2 "mother"), gen(source)
*** BCG *** //BCG either source recode h2 (1 2 3=1) (else=0), gen(ch_bcg_either)
//BCG mother's report gen ch_bcg_moth=ch_bcg_either replace ch_bcg_moth=0 if source==1
//BCG by card gen ch_bcg_card=ch_bcg_either replace ch_bcg_card=0 if source==2
label var ch_bcg_card "BCG vaccination according to card" label var ch_bcg_moth "BCG vaccination according to mother" label var ch_bcg_either "BCG vaccination according to either source"
*** Pentavalent *** //DPT 1, 2, 3 either source recode h3 (1 2 3=1) (else=0), gen(dpt1) recode h5 (1 2 3=1) (else=0), gen(dpt2) recode h7 (1 2 3=1) (else=0), gen(dpt3) gen dptsum= dpt1+dpt2+dpt3
- this step is performed for multi-dose vaccines to take care of any gaps in the vaccination history. See DHS guide to statistics
- for further explanation gen ch_pent1_either=dptsum>=1 gen ch_pent2_either=dptsum>=2 gen ch_pent3_either=dptsum>=3
//DPT 1, 2, 3 mother's report gen ch_pent1_moth=ch_pent1_either replace ch_pent1_moth=0 if source==1
gen ch_pent2_moth=ch_pent2_either replace ch_pent2_moth=0 if source==1
gen ch_pent3_moth=ch_pent3_either replace ch_pent3_moth=0 if source==1
//DPT 1, 2, 3 by card gen ch_pent1_card=ch_pent1_either replace ch_pent1_card=0 if source==2
gen ch_pent2_card=ch_pent2_either replace ch_pent2_card=0 if source==2
gen ch_pent3_card=ch_pent3_either replace ch_pent3_card=0 if source==2
drop dpt1 dpt2 dpt3 dptsum
label var ch_pent1_card "Pentavalent 1st dose vaccination according to card" label var ch_pent1_moth "Pentavalent 1st dose vaccination according to mother" label var ch_pent1_either "Pentavalent 1st dose vaccination according to either source" label var ch_pent2_card "Pentavalent 2nd dose vaccination according to card" label var ch_pent2_moth "Pentavalent 2nd dose vaccination according to mother" label var ch_pent2_either "Pentavalent 2nd dose vaccination according to either source" label var ch_pent3_card "Pentavalent 3rd dose vaccination according to card" label var ch_pent3_moth "Pentavalent 3rd dose vaccination according to mother" label var ch_pent3_either "Pentavalent 3rd dose vaccination according to either source"
*** Polio ***
//polio 0, 1, 2, 3 either source recode h0 (1 2 3=1) (else=0), gen(ch_polio0_either)
recode h4 (1 2 3=1) (else=0), gen(polio1) recode h6 (1 2 3=1) (else=0), gen(polio2) recode h8 (1 2 3=1) (else=0), gen(polio3) gen poliosum=polio1 + polio2 + polio3
- this step is performed for multi-dose vaccines to take care of any gaps in the vaccination history. See DHS guide to statistics
- for further explanation gen ch_polio1_either=poliosum>=1 gen ch_polio2_either=poliosum>=2 gen ch_polio3_either=poliosum>=3
//polio 0, 1, 2, 3 mother's report gen ch_polio0_moth=ch_polio0_either replace ch_polio0_moth=0 if source==1
gen ch_polio1_moth=ch_polio1_either replace ch_polio1_moth=0 if source==1
gen ch_polio2_moth=ch_polio2_either replace ch_polio2_moth=0 if source==1
gen ch_polio3_moth=ch_polio3_either replace ch_polio3_moth=0 if source==1
//polio 0, 1, 2, 3 by card gen ch_polio0_card=ch_polio0_either replace ch_polio0_card=0 if source==2
gen ch_polio1_card=ch_polio1_either replace ch_polio1_card=0 if source==2
gen ch_polio2_card=ch_polio2_either replace ch_polio2_card=0 if source==2
gen ch_polio3_card=ch_polio3_either replace ch_polio3_card=0 if source==2
drop poliosum polio1 polio2 polio3
label var ch_polio0_card "Polio at birth vaccination according to card" label var ch_polio0_moth "Polio at birth vaccination according to mother" label var ch_polio0_either "Polio at birth vaccination according to either source" label var ch_polio1_card "Polio 1st dose vaccination according to card" label var ch_polio1_moth "Polio 1st dose vaccination according to mother" label var ch_polio1_either "Polio 1st dose vaccination according to either source" label var ch_polio2_card "Polio 2nd dose vaccination according to card" label var ch_polio2_moth "Polio 2nd dose vaccination according to mother" label var ch_polio2_either "Polio 2nd dose vaccination according to either source" label var ch_polio3_card "Polio 3rd dose vaccination according to card" label var ch_polio3_moth "Polio 3rd dose vaccination according to mother" label var ch_polio3_either "Polio 3rd dose vaccination according to either source"
*** Measles *** //measles either source recode h9 (1 2 3=1) (else=0), gen(ch_meas_either) recode h9a (1 2 3=1) (else=0), gen(ch_meas_either2)
//measles mother's report gen ch_meas_moth=ch_meas_either replace ch_meas_moth=0 if source==1
//measles by card gen ch_meas_card=ch_meas_either replace ch_meas_card=0 if source==2
label var ch_meas_card "Measles vaccination according to card" label var ch_meas_moth "Measles vaccination according to mother" label var ch_meas_either "Measles vaccination according to either source"
*** All vaccinations *** gen ch_allvac_either=ch_bcg_either==1&ch_pent3_either==1&ch_polio3_either==1&ch_meas_either==1 label var ch_allvac_either "All basic vaccinations according to either source"
gen ch_allvac_moth=ch_allvac_either replace ch_allvac_moth=0 if source==1 label var ch_allvac_moth "All basic vaccinations according to mother"
gen ch_allvac_card=ch_allvac_either replace ch_allvac_card=0 if source==2 label var ch_allvac_card "All basic vaccinations according to card"
*** No vaccinations *** gen ch_novac_either=ch_bcg_either==0&ch_pent1_either==0&ch_pent2_either==0&ch_pent3_either==0 /// &ch_polio0_either==0&ch_polio1_either==0&ch_polio2_either==0&ch_polio3_either==0&ch_meas_either==0 label var ch_novac_either "No vaccinations according to either source"
gen ch_novac_moth=ch_novac_either replace ch_novac_moth=0 if source==1 label var ch_novac_moth "No vaccinations according to mother"
gen ch_novac_card=ch_novac_either replace ch_novac_card=0 if source==2 label var ch_novac_card "No vaccinations according to card"
*** vaccination card possession *** recode h1(1/3=1) (else=0), gen(ch_card_ever_had) label var ch_card_ever_had "Ever had a vaccination card"
recode h1(1=1) (else=0), gen(ch_card_seen) label var ch_card_seen "Vaccination card seen"`