The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Reproductive Health » Reproductive calendar
Re: Reproductive calendar [message #2201 is a reply to message #2200] Sun, 25 May 2014 23:41 Go to previous messageGo to previous message
user-rhs is currently offline  user-rhs
Messages: 132
Registered: December 2013
Senior Member
Kash,
Since I originally posted the Stata code to extract each character into its own variable, I have revised my methods and would not recommend trimming the variables into a certain length x. Go ahead and extract each character in the variable, which means adding X number of repetitions of the lines that read gen ___ =substr(....) (I think the standard length was 80? I'm not at my desk right now and don't have the data in front of me). The different lengths in number of characters is normal and to be expected. It is a function of when the woman was interviewed. Remember that the start date for the calendar is the same for all women, so if a woman was interviewed toward the end of the data collection cycle, she will have more months of information than a woman who was interviewed at the beginning of the data collection cycle.

HTH,
RHS
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Variable labels for reproductive calendar - Nigeria 2013
Next Topic: Knowledge of contraceptive methods - Senegal v304
Goto Forum:
  


Current Time: Sat Dec 28 18:02:39 Coordinated Universal Time 2024