The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Service Provision Assessment (SPA) » Creating some variables (SPA)
Re: Creating some variables [message #23349 is a reply to message #23342] Thu, 26 August 2021 08:35 Go to previous messageGo to previous message
ashraf is currently offline  ashraf
Messages: 3
Registered: August 2021
Member
Dear Sara,
Thanks a lot for your kindest support and I was able to create the variables except "equipment for high level disinfection" of table 3.5.
I have tried to create this variable according to the footnote, and questionnaire but unable to match with the report table.
The code is:
gen sw=facwt/1000000
gen ste=0
replace ste=1 if (q201==1 | q201==2) & ((q501a_1==1 & q501b_1==1) | (q501a_3==1 & q501b_3==1) | (q501a_6==1))
tab ste [iw=sw]

Would it be possible to get the correct code of this variable?

Regards,
Ashraf




 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Replicating table 3.3 and 3.7 in Tanzania SPA 2014-15
Next Topic: Creating two variable
Goto Forum:
  


Current Time: Thu Oct 10 09:15:07 Coordinated Universal Time 2024