The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Service Provision Assessment (SPA) » How to replicate Table 7.6 Signal functions for emergency obstetric care
How to replicate Table 7.6 Signal functions for emergency obstetric care [message #28026] Fri, 03 November 2023 06:22 Go to next message
toukir86 is currently offline  toukir86
Messages: 10
Registered: November 2023
Member
Does anyone have the code to replicate Table 7.6 for BD SPA 2017 data?
Re: How to replicate Table 7.6 Signal functions for emergency obstetric care [message #28129 is a reply to message #28026] Thu, 16 November 2023 12:29 Go to previous message
SaraDHS is currently offline  SaraDHS
Messages: 46
Registered: December 2020
Member
Hello,
As described in the title of the table, the facilities are limited to those offering normal delivery services, so where q102_07==1. You then need to use the svy command to take into account the survey design and facility selection. I have included code below for the first column "Antibiotics". You can recreate the same code for the remaining columns using the information from the table.


egen strata = group(factype region)
svyset [pw=fwt], psu(facil) strata(strata) singleunit(centered)
svy: ta q102_07

keep if q102_07==1

recode q1604b_1 (.=2)

svy: tab q1604b_1


*To limit to non community center facilities, drop those facilities where factype==8


Sara Riese, PhD Senior Demographic and Health Researcher, DHS Program
Previous Topic: How to create Facility Recode dataset from Facility Raw for BDHS 2017 SPA
Next Topic: How calculate number of staff with delivery ability available 24/7.
Goto Forum:
  


Current Time: Sun Nov 24 03:03:52 Coordinated Universal Time 2024