I have different date variables and want to find the second minimum date. That is when you order the dates from lowest to highest, what is the second lowest date after the first? Can someone help me with this, please? Below is an example dataset. Thank you very much.
ID age date1 date2 date3 date4
1. 30. 16/12/2012 10/06/2000 01/01/1999 06/05/2001
2. 19. 16/07/2014 09/04/2002 02/10/1999 07/04/1998
Related Posts with Second minimum date
How to add reference lines (yline) for different ID?Hi all in Statalist,
I need help with having two reference lines in the same plot.
In our study, w…
Panel RegressionHello
At the moment I'm trying to do regressions with panel data.
If I make a OLS regression with t…
Panel data and within individual effectsHi everyone,
I have a panel dataset where I follow individuals for 12 waves (new_waves).
What I am …
chi2 not allowed with mrtab and weightHi, I try to do a chi2 test of significance. When I do not add weight, stata allows it, but when I t…
Insufficient data when trying looped regressions and storing betasHi,
I am trying to run a loop of regressions by an index called funddateid and then storing the bet…
Subscribe to:
Post Comments (Atom)
0 Response to Second minimum date
Post a Comment