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
Margins plot for a log-log modelHi, I am using a log-log model specification: Code: reg lnY lnX1 lnX2 lnX1*lnX2 In this case, the…
Change date abbreviation in multible observationsHey, I have dates according to the following dataset: Code: * Example generated by -dataex-. To …
2020 Swiss Stata Conference: Program available, registration openThe program of the 2020 Swiss Stata Conference on November 19 in Bern is now available. See one of t…
Separate bar labels in a graphDear Statalist, I have to build several graph with the bar label included. However, as you can see b…
Example of Difference in Difference approach with binary or multinomial choice modelHi,dear all: I am facing a problem that emprically dealing with descrete choice model with differen…
Subscribe to:
Post Comments (Atom)
0 Response to Compute intervals between dates
Post a Comment