The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Service Provision Assessment (SPA) » Replicating table 3.3 and 3.7 in Tanzania SPA 2014-15 (2014-15 TSPA)
Re: Replicating table 3.3 and 3.7 in Tanzania SPA 2014-15 [message #23315 is a reply to message #23300] Mon, 23 August 2021 00:21 Go to previous messageGo to previous message
shakim is currently offline  shakim
Messages: 10
Registered: January 2021
Member
Dear Sara,

Thanks a lot for your kindest support and I was able to reproduce the tables with your help.
Now, I want create some variables from Nepal SPA 2015 using STATA. I have tried with the following codes-
gen wt=facwt/1000000
Table 3.3:
*Regular electricity
gen elec=0
replace elec=1 if q340==1 & q341==1
replace elec=1 if (q343a==1 | q343b==1) & q345==1 & q346==1
replace elec=1 if q343c==1
tab elec [iw=wt],m
Table 3.5.1:
*Soap and running water or else
alcohol-based hand disinfectant
gen swatrub=0
replace swatrub=1 if (q710_02==1 & q710_01==1) | q710_03==1
tab swatrub [iw=wt]
Table 3.7.3:
*Xray machine
gen xray=0
replace xr=1 if (q881a_2==1 & q881b_2==1)
tab xray [iw=wt]
*Full blood count
gen blood_count=0
replace blood_count=1 if q802a_1==1 & q802b_1==1 & q802c_1==1
tab blood_count [iw=wt]
*Liver or renal function test
gen lrt=0
replace lrt =1 if q834==1 & q835==1
tab lrt [iw=wt]

It looks like I am using the correct variables. Unfortunately, I am not getting the percentages as of the tables in Nepal 2015 report.
Please help me in recreating the above variables in STATA.

Regards,
Shakim
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Replicating table in DR Congo SPA 2017-18
Next Topic: Creating some variables
Goto Forum:
  


Current Time: Wed Nov 13 22:23:50 Coordinated Universal Time 2024