Interval events
See original GitHub issueThanks for the awesome work.
I am trying to do some survival analysis where the observations are done on fixed intervals. Is there anyway to handle these types of information?
The following is an example of such data
Start Stop Censored
0 4640 NaN True
1 4640 NaN True
2 4640 NaN True
3 4640 NaN True
4 4640 NaN True
.. ... ... ...
15 215 464.0 False
16 0 1.0 False
17 4640 NaN True
18 4640 NaN True
19 4640 NaN True
Here, if the Stop
column is NaN
then the data is censored, but if the Stop
has a number then the event happened between Start
time and Stop
time.
Thanks for the help
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
The Interval at Long Now
The Conversations at The Interval are intimate salon style events centered around long-term thinking featuring renowned authors, scientists and artists.
Read more >Actions and Events in Interval Temporal Logic
Events are defined to occur over intervals of time, and cannot be reduced to some set of properties holding at instantaneous points in...
Read more >Intervals
We can define the interval between events A and B very simply: Square the distance between the events, then subtract from that the...
Read more >Event interval analysis: Why do processes take time?
Event intervals can be calculated from event logs. In essence, an event interval is a period of time between the occurrences of two...
Read more >Queue service interval events examples - IBM
Queue service interval events examples · Figure 1 is a graph of queue depth against time, showing individual MQGET calls and MQPUT calls....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So version 0.21.0 (just released) has initial support for parametric models of interval censoring. Here’s an example: https://dataorigami.net/blogs/napkin-folding/counting-and-interval-censoring
Next is to do non and semi parametric models, but that’s for the medium-term future.
Your example can be modelled something like:
I believe that’s it! I’m treating your right censored as interval censored (with an endpoint at infinity).
It’s not hard to write down the likelihood for this data (assuming a parametric model). It would be a combination of eq (2) and (3) in this paper: https://cran.r-project.org/web/packages/flexsurv/vignettes/flexsurv.pdf