Staff trained for ANC [message #21888] |
Tue, 05 January 2021 10:46 |
bakerchowdhury
Messages: 25 Registered: April 2014
|
Member |
|
|
"I would like to create the variable "Staff trained for ANC" using Nepal Health Facility Survey-2015 (Report-Table 6.2 page 120). First I merged the provider data with facility inventory data. Then I tried using the following code but the result was not similar to the report:
gen trained_staff=0
replicate trained_staff=1 if P502_1 ==1 | P502$2==1 | P502$3==1 | P502$4==1 | (P505$1==1 | P505$5==1)
"
|
|
|
|
Re: Staff trained for ANC [message #22549 is a reply to message #21972] |
Tue, 30 March 2021 12:20 |
bakerchowdhury
Messages: 25 Registered: April 2014
|
Member |
|
|
Thank you, Bridgette, for the response. Here "P502000" is not clear to me, couldn't find any variable under this name. Also, there are five (p502_1 p502_2 p502_3 p502_4 p502_5) variables in p502, do we need to use all of them? Similarly, p505 has six (p505_1 p505_2 p505_3 p505_4 p505_5 p505_6) variables. The last part cntanc2=cntanc2+1 is also unclear, why we add 1 at the end? I would appreciate it if you could help writing this in Stata.
Thank you!
|
|
|
Re: Staff trained for ANC [message #22589 is a reply to message #22549] |
Wed, 07 April 2021 15:09 |
SaraDHS
Messages: 46 Registered: December 2020
|
Member |
|
|
Hello,
In Stata, if you use the below code after merging the provider data with the facility inventory data, you should be able to recreate the final report values for number of providers with ANC in-service training.
gen ancfacil =0
replace ancfacil=1 if (q102_05==1 & inrange(q1401,0,31)) | q102_05==3
gen anc_staff=0
replace anc_staff=1 if (p500==1 | p500==2 | p500==3)
gen trained_staff=0 if ancfacil==1 & anc_staff==1
replace trained_staff =1 if ancfacil==1 & anc_staff==1 & (p502_1==1 | p502_2==1 | p502_3==1 | p502_4==1 | p502_5==1 | p505_1==1 | p505_5==1 | p206_5==1 | p206_6==1)
Hope that's helpful!
Best,
Sara
Sara Riese, PhD
Senior Demographic and Health Researcher, DHS Program
|
|
|