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
Run a loop only on string variables (without specifying them)Hi! I am using a rather big data set in terms of variables. I have crop specific variables for 18 c…
Problems with Multilevel logistic modelDear all, I am currently working on a study looking at the link between weather shocks (precipitatio…
Error 301 for conditional fixed effects negative binomial regression, panel dataHello, Background I have a couple of years' worth of panel data for dengue case counts at the prov…
Creating portfolios sorted by returns and standard deviation.Hello I have sorted stocks by past returns and price standard deviation. And, I tried to create port…
How to create crisis dummy variable in panel countriesTime Period 1970 to 2018 Countries 33 I wanted to create crisis dummy variable 1 if below crisis ye…
Subscribe to:
Post Comments (Atom)
0 Response to Second minimum date
Post a Comment