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
Sum of dummy but aggregatedDear all, I am running into an issue that I can use your expertise on. I will write out in this pos…
Sysuse auto/tabI have these two deliverables: 5. Find the mean, median, min and max winsorized Z-Score for the who…
Last character of last string is dropped when using local macro to name matrix columns, bewildering behaviorStata/MP 14.2 and my installation does not have internet access, so I cannot copy code or output to …
Difference-in-Differences with Multiple Treatment Strengths/DosagesHi. I am trying to run a DiD regression to analyze the effect of education policy implementation on …
How to analyze interaction effects after fixed effects count data regression with panel?Hi Statalisters, My current project is using count data model to analyze panel data with fixed effe…
Subscribe to:
Post Comments (Atom)
0 Response to Finding the earliest date within two boundaries
Post a Comment