I have three date variables corresponding to the beginning of three surveys for different individuals in the %td format (01jan2020 for instance) (so the beginning of survey 1 can vary across observations, etc.).
To generate the earliest date, I would just go for egen earliest = rowmin(date1 date2 date3), but what if I'm interested in finding the earliest date an individual has been surveyed between, say, February 2020 and November 2020?
Thanks a lot for the help. I would love to show you some data example but I don't know how to shuffle my dataset because the first observations only have one date available. I'd be grateful if someone helped me figure that little problem out!
Related Posts with Finding the earliest date within two boundaries
probit regressionHey Guys, I am trying to fit a probit regression. Where I use adtitional control variables such as …
save data in different file on the basis of variable valuesi have about 100 files similar to below example: I want to save this data in different files on the …
Reshape helpDear all, I'm dealing with some data from a conjoint experiment. Currently, it is in wide format (e…
Help: OS, HR and CI 95%Good morning guys, I need some clarification about overall survival, hazard ratio and C.I.95%. I wou…
Combining datasetsDear statalist members, For my assignment I use 4 datasets. In this 4 datasets I have a variable: F…
Subscribe to:
Post Comments (Atom)
0 Response to Finding the earliest date within two boundaries
Post a Comment