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
Handling missing values at once?Hello, I was wondering is there any code to put all of my missing value of -1 to 0 at once. I have…
How to get marginal effects for a categorical string variable via a logit modelHi there, I have a categorical variable 'Kickername', which gives the name of an NFL field goal kic…
Math eqtesting [ 0 <= a + bX_{it-1} <= 100 \] \[ 0 <= a + bX_{it-1} <= 100 \] …
Question about interpreting coefficients of regression with interaction termsDear all, I am currently working with a country-sector-year panel data-set, which contains values f…
looking for a code to convert date (08jan2008) to weeksHello Everyone, I am looking to convert date to weeks variable is daterec and the range is from (08…
Subscribe to:
Post Comments (Atom)
0 Response to Compute intervals between dates
Post a Comment