Hi- I am trying to create a date variable from two other date variables. Basically, I merged two separate datasets that both had a different named date variable, but I want to merge them into one variable that has either the non-missing date or the earlier date.
So, I want to create a new variable (MRE_finaldate) that is either the non-missing date or the earlier date. In this case MRE_finaldate would be: 2001-01-01, 2003-01-01, 2002-01-01, 2001-01-01. However, my working dataset is too large to do this manually. Does anyone know how I can produce a code that does this?