Dear readers of the Statalist,
I have (spell?) data (see the example below) and I would like to calculate the number of simultaneously overlapping episodes per minute. For example, I would like to calculate the number of overlapping episodes (spells) at 11:19, at 11:20, etc. (In the end, I'm only interested in the maximum number of overlaps).
I am aware of a possible solution: convert the data into a discrete time panel (using expand; described in "discrete" in the manual for survival analysis) and simply count per row.
However, this would be very time-consuming since my dataset is large.
Hence, I wonder if there is any other solution?
Thank you very much!
start end
10:40 11:20
11:02 11:22
11:04 11:24
11:08 11:28
11:16 11:56
I have (spell?) data (see the example below) and I would like to calculate the number of simultaneously overlapping episodes per minute. For example, I would like to calculate the number of overlapping episodes (spells) at 11:19, at 11:20, etc. (In the end, I'm only interested in the maximum number of overlaps).
I am aware of a possible solution: convert the data into a discrete time panel (using expand; described in "discrete" in the manual for survival analysis) and simply count per row.
However, this would be very time-consuming since my dataset is large.
Hence, I wonder if there is any other solution?
Thank you very much!
start end
10:40 11:20
11:02 11:22
11:04 11:24
11:08 11:28
11:16 11:56
Comment