The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Reproductive Health » Calendar Data
Re: Calendar Data [message #2884 is a reply to message #2882] Sat, 06 September 2014 16:37 Go to previous messageGo to previous message
Trevor-DHS is currently offline  Trevor-DHS
Messages: 805
Registered: January 2013
Senior Member
In older surveys where information on ever use of contraception was collected, the information is stored in the v305 series of variables. In newer surveys where ever use of contraception is not collected, you can create a set of variables for whether the method was used at all in the calendar using code such as this:

foreach x in 0 1 2 3 4 5 6 7 8 9 L N W {
  gen usedincal_`x' = 0
  replace usedincal_`x' = 1 if strpos(vcal_1,"`x'")  
}


This code creates a dichotomous variable for each method, coded 1 if the method was ever used in the calendar of the respondent.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Computing timing of postnatal checkup using Stata
Next Topic: Contraceptive use (measuring dual use) using 2008-09 KDHS
Goto Forum:
  


Current Time: Thu Jan 9 13:03:41 Coordinated Universal Time 2025