Hello StataList,
In my dataset of hospital consultations, each observation represents one consultation and variables include the consultation start date and end date. Am seeking to either tabulate or just count the number of consultations active on each date.
Had originally thought -egen- perhaps followed by -reshape- might be first steps to solve, but honestly haven't made any progress so far.
Any advice or suggestions would be most appreciated.
Thank you -
Randy Absher
In my dataset of hospital consultations, each observation represents one consultation and variables include the consultation start date and end date. Am seeking to either tabulate or just count the number of consultations active on each date.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float(id startdate enddate) 1 21124 21125 2 21124 21126 3 21124 21136 4 21125 21129 5 21125 21127 6 21125 21128 7 21126 21130 8 21126 21130 end format %td startdate format %td enddate
Any advice or suggestions would be most appreciated.
Thank you -
Randy Absher
Comment