The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Reproductive Health » Limit pregnancies to last five years
Limit pregnancies to last five years [message #10819] Tue, 20 September 2016 22:14
chr8850
Messages: 20
Registered: July 2016
Member
Hi there,
I am using the Afghanistan 2010 AMS data (Women's data file) and want to limit my file to all pregnancies in the last five years. There are two different variables that record the date of birth of live births (q317cg) and date of birth for non-live births (q324cg) and i had used the interview date (qintcg) minus 60 months which i have applied after reshaping the pregnancy file and generating pregnancy outcome variable, but i am getting too many pregnancies of 7+ months (if i compare to table D5 in Appendix on page 189 of the report). I have used the Gregorian calendar variable rather than the one based on the Afghan calendar - is what is reported in the 2010 AMS report based on Gregorian or Afghan calendar? The code i used is below. Any advice would be appreciated.

keep if q317cg > qintcg-60
keep if q324cg > qintcg-60
Previous Topic: Maternal care and services coverage
Next Topic: twin birth, weight and size of the last birth
Goto Forum:
  


Current Time: Thu Mar 28 18:08:37 Coordinated Universal Time 2024