The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in SPSS » Vaccinations
Vaccinations [message #2594] Fri, 18 July 2014 19:25 Go to next message
Lisa
Messages: 7
Registered: July 2014
Member
In reference to The Pakistan Demographic Health Survey Report 2012-2013, Table 10.3 Vaccinations by background characteristics, how could one replicate this in SPSS?
Re: Vaccinations [message #2596 is a reply to message #2594] Mon, 21 July 2014 09:00 Go to previous messageGo to next message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3016
Registered: February 2013
Senior Member
We will review your post, and someone will be back to you soonest.

Thanks
Re: Vaccinations [message #2599 is a reply to message #2596] Mon, 21 July 2014 11:17 Go to previous messageGo to next message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3016
Registered: February 2013
Senior Member
Please let us know what you are having problems with, re producing table 10.3 in SPSS.
Re: Vaccinations [message #2600 is a reply to message #2599] Mon, 21 July 2014 12:12 Go to previous messageGo to next message
Lisa
Messages: 7
Registered: July 2014
Member
What was your syntax for the columns that had all vaccinations, no vaccinations and number of children?
Re: Vaccinations [message #2602 is a reply to message #2594] Tue, 22 July 2014 09:51 Go to previous messageGo to next message
Lisa
Messages: 7
Registered: July 2014
Member
I have managed to replicate the table. No need for syntax
Re: Vaccinations [message #2608 is a reply to message #2602] Tue, 22 July 2014 13:56 Go to previous messageGo to next message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3016
Registered: February 2013
Senior Member
Thanks for letting us know that you figred it out. However, I am posting the syntax provided by our Senior Data Processing Specialist, Ladys Ortiz. Another data user might find it helpful:

*// Number of children.
*// Only for living children age 12-23 months .
COMPUTE months = V008 - B3.
SELECT IF (B5 = 1 & Months >= 12 & Months <= 23).


*// Type of vaccines.
*// BCG.
IF (H2 >= 1 & H2 <= 3) BCG = 1.

* DPT 1.
*// Initializing working variable to accumulate DPT 1,2,3.
COMPUTE DPT = 0.
IF (H3 >= 1 & H3 <= 3) DPT = DPT + 1.
IF (H5 >= 1 & H5 <= 3) DPT = DPT + 1.
IF (H7 >= 1 & H7 <= 3) DPT = DPT + 1.
IF ( DPT >= 1) DPT1 = 1.
IF ( DPT >= 2) DPT2 = 1.
IF ( DPT >= 3) DPT3 = 1.

* POLIO 0.
IF (H0 >= 1 & H0 <= 3) Polio0 = 1.

* POLIO 1.
*// Initializing working variable to accumulate Polio 1,2,3.
COMPUTE Polio = 0.
IF (H4 >= 1 & H4 <= 3) Polio = Polio + 1.
IF (H6 >= 1 & H6 <= 3) Polio = Polio + 1.
IF (H8 >= 1 & H8 <= 3) Polio = Polio + 1.
*// Defining each POLIO variables depending of accumulative number .
IF (Polio >= 1) Polio1 = 1.
IF (Polio >= 2) Polio2 = 1.
IF (Polio >= 3) Polio3 = 1.

* Measles.
IF (H9 >= 1 & H9 <= 3) Measles = 1.

*// Count all basics vaccinations received at any time.
COUNT AllBasic = BCG DPT1 DPT2 DPT3 Polio1 Polio2 Polio3 measles (1).
IF ( Allbasic = 8) AllVac = 1.
VARIABLE LABELS AllVac "".
VALUE LABELS AllVac 1"All basic vaccinations2".

*// Count No basics vaccinations given at any time.
*// No vaccines = none of the basic vaccines & no polio 0.
COMPUTE vP0 = 0.
IF (H0 >= 1 & H0 <= 3) vP0 = 1.
IF ( AllBasic = 0 & vP0 = 0) NoVac = 1.
VARIABLE LABELS NoVac "".
VALUE LABELS NoVac 1"No vaccinations".

Re: Vaccinations [message #2711 is a reply to message #2608] Wed, 13 August 2014 10:07 Go to previous messageGo to next message
Lisa
Messages: 7
Registered: July 2014
Member
Are there any variables in the dataset that could measure mother's mental health?
Re: Vaccinations [message #2717 is a reply to message #2711] Thu, 14 August 2014 15:43 Go to previous messageGo to next message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3016
Registered: February 2013
Senior Member
This information is not normally collected in our surveys. There is at least one survey with questions on Mental Health - Uzbekistan 2002 Special (Ref page 316 - Appendix E of the Final Country Report). If I come across any others, I will add that to this post.
Re: Vaccinations [message #2725 is a reply to message #2717] Fri, 15 August 2014 10:03 Go to previous messageGo to next message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3016
Registered: February 2013
Senior Member
The attached file (provided by DHS Specialist, Liz Britton), gives a few more surveys with questions on mental health.

I hope that helps.

Bridgette-DHS
Re: Vaccinations [message #12148 is a reply to message #2608] Sun, 02 April 2017 22:35 Go to previous messageGo to next message
phres110 is currently offline  phres110
Messages: 39
Registered: October 2014
Location: korea
Member
Dear Bridgette-DHS
Thank you very much for your valuable answers always.
can you provide me the same syntax in SAS for PDHS 2012-13 for vaccination as you provided to msg no 2608?
Regards.


dhs110
Re: Vaccinations [message #12150 is a reply to message #12148] Mon, 03 April 2017 07:04 Go to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3016
Registered: February 2013
Senior Member
Unfortunately, we do not have that syntax in SAS.
Previous Topic: Using a sub-sample for analysis
Next Topic: What does it means M2A$1 - DHS Women's dataset
Goto Forum:
  


Current Time: Thu Mar 28 05:27:41 Coordinated Universal Time 2024