I have a dataset which contains observations of 1000 subjects. In this dataset, I have 4 variables in date format for each woman. lets call them var1, var2, var3, var4. I want to create a new variable, and that variable should be the earliest date (either var 2, var 3, or var 4) after the date of var 1. That is, stata should pick the next closest date after the date in var1 (the dates should be picked from either var 2 or var 3 or var 4). How can I do this please?
-
Login or Register
- Log in with
Comment