I am trying to compute inter-pregnancy intervals (in months) and have the variables to compute this interval between two dates. However, the "day of birth" variable is missing. Dataset only has (mm) and years (yy). My goal: To calculate the pregnancy interval between most recent birth and previous live birth in months.
The numeric variables are listed below;
Most recent birth
1. Month of most recent birth (mm_dob)
2. Year of most recent birth (yy4_dob)
Previous live birth
3. Month of last live birth (mm_llb)
4. Year of last live birth (yy4_llb)
I will be most grateful for your help.
Related Posts with Compute intervals between dates
drop observations if delisting year is earlier than or equal to the current yearDear statalist, I have a set of firms (symbol is used to identify firms) with year and delisting ye…
Adjusted IRRDear colleagues how does stata nbreg calculate adjusted incident rate ratios (IRR).Because from my e…
How to count if each cell of string observations each, contains specific consecutive string observations?Dear all, I wanted your help with the following. I am working on a patent project and below I pasti…
Herfindahl-Hirschman Index (HHI)Hi All, I am trying to calculate the HHI based on the number of vendors in a certain location by ye…
Aggregating variable by year and proportionsHi everyone, I am looking to do two things with my data that I am struggling with setting up the eq…
Subscribe to:
Post Comments (Atom)
0 Response to Compute intervals between dates
Post a Comment