The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Child Health » Basic Vaccination and Nutritional Status STATA HELP
Basic Vaccination and Nutritional Status STATA HELP [message #20107] Fri, 25 September 2020 13:26 Go to next message
nessie2020 is currently offline  nessie2020
Messages: 4
Registered: September 2020
Member
Hello everyone, 2 questions:

1. How to show age in months (STATA command please)

2. I am currently trying to figure out how to see children aged 12-24 months who received all basic vaccinations according to vaccination card and mother's report. In other words I want to create a new variable that will encompass children who either a) received all 8 of these vaccinations or b) did not receive all 8 vaccinations. Please let me know the STATA command.

Thank you!

[Updated on: Fri, 25 September 2020 13:26]

Report message to a moderator

Re: Basic Vaccination and Nutritional Status STATA HELP [message #20133 is a reply to message #20107] Mon, 28 September 2020 13:01 Go to previous messageGo to next message
Shireen-DHS is currently offline  Shireen-DHS
Messages: 140
Registered: August 2020
Location: USA
Senior Member
Hello,

For your first question, age in months is b19 is recent surveys. If b19 is not found in the dataset then you can generate age in the KR or BR file as follows

gen age=v008-b3

For vaccination please refer to our code share library in Chapter 10. Specifically the indicators you are interested in are found in CH_VAC.do file. Please read the readme file and the main file for the chapter before running any code. The link is: https://github.com/DHSProgram/DHS-Indicators-Stata
Please go to Chap10_CH folder on this site.

Please also refer to the Guide to DHS Statistics for further details on how vaccination indicators are computed.
Link: https://www.dhsprogram.com/Data/Guide-to-DHS-Statistics/inde x.htm#t=Vaccination.htm

Thank you.
Best,
Shireen Assaf
The DHS Program
Re: Basic Vaccination and Nutritional Status STATA HELP [message #21765 is a reply to message #20107] Wed, 16 December 2020 02:54 Go to previous message
summera is currently offline  summera
Messages: 1
Registered: September 2020
Member


That might be help full to you.
(vaccination)
gen dpt=0

. replace dpt=1 if h3>0 & h3<8 & h5>0 & h5<8 & h7>0 & h7<8
(4210 real changes made)

. replace dpt=. if age<12 | age>23 | b5==0
(48164 real changes made, 48164 to missing)

. gen measles=(h9==1|h9==2|h9==3)

. replace measles = . if age<12 | age>23 | b5==0
(48164 real changes made, 48164 to missing)

. gen polio=0

. replace polio=1 if h4>0 & h4<8 & h6>0 & h6<8 & h8>0 & h8<8
(5126 real changes made)

. replace polio = . if age<12 | age>23 | b5==0
(48164 real changes made, 48164 to missing)

. gen bcg=0

. replace bcg=1 if h2>0 & h2<8
(5771 real changes made)

. replace bcg = . if age<12 | age>23 | b5==0
(48164 real changes made, 48164 to missing)

. gen vaccine=0

. replace vaccine=1 if polio==1 & dpt==1 & measles==1 & bcg==1
(1410 real changes made)

. replace vaccine = . if age<12 | age>23 | b5==0
(48164 real changes made, 48164 to missing)
Previous Topic: Support for Education among child 36-59 month
Next Topic: No. of U5 in HH coded "0" ?.
Goto Forum:
  


Current Time: Thu Mar 28 09:18:43 Coordinated Universal Time 2024