The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Reproductive Health » Replicating Table 9.7: Timing of first postnatal checkup for the mother
Re: Replicating Table 9.7: Timing of first postnatal checkup for the mother [message #29107 is a reply to message #12178] Wed, 24 April 2024 05:50 Go to previous message
doria786 is currently offline  doria786
Messages: 1
Registered: April 2024
Member
When it comes to generating the time_mother variable, your conditions for categorizing the timing of postnatal care appear to be logically structured. However, one potential issue could be with the use of the & operator without enclosing the conditions in parentheses. In Stata, logical conditions combined with & should be enclosed in parentheses to ensure they are evaluated correctly.

** WEIGHT VARIABLE
gen weight = v005/1000000

** SURVEY SET
gen psu = v021
gen strata = v022
svyset psu [pw = weight], strata(strata)

When it comes to generating the time_mother variable, your conditions for categorizing the timing of postnatal care appear to be logically structured. However, one potential issue could be with the use of the & operator without enclosing the conditions in parentheses. In Stata, logical conditions combined with & should be enclosed in parentheses to ensure they are evaluated correctly.

Additionally, the replace command for time_mother = . if bidx > 1 might be excluding some cases that should be included in the analysis. Make sure that this condition aligns with the methodology used in the PDHS report.

For the tabulation commands, it's crucial to ensure that the format(%4.1f) option is used consistently to match the report's percentage format. Also, check if the row option is necessary for your analysis, as it changes the way percentages are calculated. If you continue to face discrepancies, I recommend comparing your results with the PDHS report's methodology section or checking for any updates or errata related to Table 9.7. You can find the PDHS 2012-13 report here for reference.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Cervical cancer
Next Topic: Postmenopausal age
Goto Forum:
  


Current Time: Wed Nov 27 06:46:08 Coordinated Universal Time 2024