Hi there,
I have a couple of individuals and I want to create a daily panel data structure for these individuals based on the starting date and end date. I wonder if anyone knows how to do this in Stata?
----------------------- copy starting from the next line -----------------------
------------------ copy up to and including the previous line ------------------
Thanks and looking forward to your reply!
Best wishes
Meng
I have a couple of individuals and I want to create a daily panel data structure for these individuals based on the starting date and end date. I wonder if anyone knows how to do this in Stata?
----------------------- copy starting from the next line -----------------------
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str23 var1 str11(var2 var3) "A" "Jan-01-2020" "Jul-01-2020" "B" "Feb-01-2021" "Aug-01-2021" "C" "Jan-03-2019" "Mar-07-2019" end
Thanks and looking forward to your reply!
Best wishes
Meng
Comment