The DHS Program User Forum - RDF feed
https://userforum.dhsprogram.com/index.php
Postnatal Care for Mothers
https://userforum.dhsprogram.com/index.phpindex.php?t=rview&goto=19010&th=8793#msg_19010
fadhilatunnisa2020-04-03T09:45:53-00:00Re: Postnatal Care for Mothers
https://userforum.dhsprogram.com/index.phpindex.php?t=rview&goto=19235&th=8793#msg_19235
1) In your code you are using:
IF (MIDX EQ 1 AND B19 LE 24) birth2 = 1.
but this should be LESS THAN (LT) 24
IF (MIDX EQ 1 AND B19 LT 24) birth2 = 1.
If I use this code and then tabulate birth2 (with weights on) I have 6616 cases of birth2 = 1, matching the report.
2) I think your further code is then dropping some other cases that should be kept, probably because on of the variables is still set to SYSMIS. I didn't try to work out where exactly the problem is.]]>Trevor-DHS2020-05-12T15:57:36-00:00Re: Postnatal Care for Mothers
https://userforum.dhsprogram.com/index.phpindex.php?t=rview&goto=19499&th=8793#msg_19499
fadhilatunnisa2020-07-02T12:30:07-00:00Re: Postnatal Care for Mothers
https://userforum.dhsprogram.com/index.phpindex.php?t=rview&goto=19500&th=8793#msg_19500
Guide to DHS Statistics. Example code for calculating indicators can be found in the DHS Code Share Library on github.]]>Trevor-DHS2020-07-02T13:55:29-00:00Re: Postnatal Care for Mothers
https://userforum.dhsprogram.com/index.phpindex.php?t=rview&goto=19503&th=8793#msg_19503
First, i already tried this syntax to get PNC providers for mother WITHIN 2 DAYS AFTER GIVING BIRTH. But how can i get the providers who check mother not in 2 days? i mean there are categorize of 3-6 days after delivery, 7-41 days, and don't know? how do i get that? please i really need your help. thank you again!
rh_pnc_wm_2days=1 is "within 2 days"
rh_pnc_wm_2days=0 is "not in 2 days"
*Providers of PNC for facility deliveries.
+ recode m64$1 (0 = 0) (11 = 1) (12,13 = 2) (14,15 = 3) (16 thru 90 = 4) (96 = 5) (else = 9) into pnc_wm_pv_hf.
+ if not (age<24 & rh_pnc_wm_2days=1) pnc_wm_pv_hf = $sysmis.
+ if (rh_pnc_wm_2days=0 & age<24) pnc_wm_pv_hf = 0.
+ value labels pnc_wm_pv_hf
0 "No check"
1 "Doctor"
2 "Nurse/Midwife"
3 "Other skilled provider"
4 "Non-skilled provider"
5 "Other"
9 "Don't know or missing".
*Providers of PNC for home deliveries or checks after discharge.
+ recode m68$1 (0 = 0) (11 = 1) (12,13 = 2) (14,15 = 3) (16 thru 90 = 4) (96 = 5) (else = 9) into pnc_wm_pv_home.
+ if not (age<24 & rh_pnc_wm_2days=1) pnc_wm_pv_home = $sysmis.
+ if (rh_pnc_wm_2days=0 & age<24) pnc_wm_pv_home = 0.
+ value labels pnc_wm_pv_home
0 "No check"
1 "Doctor"
2 "Nurse/Midwife"
3 "Other skilled provider"
4 "Non-skilled provider"
5 "Other"
9 "Don't know or missing".
*Combine two PNC provider variables.
+ compute rh_pnc_wm_pv = pnc_wm_pv_hf.
+ if (pnc_wm_pv_hf=9 & rh_pnc_wm_2days=1 & age<24) rh_pnc_wm_pv = pnc_wm_pv_home.
+ variable labels rh_pnc_wm_pv "Provider for mother's PNC check".]]>fadhilatunnisa2020-07-04T01:36:33-00:00