Is there a way to use survSplit to cut each observation at a different time?
I'm working on the following dataset: https://www.kaggle.com/datasets/pavansubhasht/ibm-hr-analytics-attrition-dataset
I'm trying to conduct a survival analysis on this dataset, but with so many measurements that depend on time after the start of the study, we need to do something about that. So I want to incorporate a recurring events model. I'm wondering if it's possible to set the 'cut' in the survSplit function at variable times, so that I can set something like YearsWithCurrManager as an intermediate event.
Obviously, p开发者_如何转开发eople aren't going to be with their current manager for the same time as other people, so I wanted to cut by row based on how much time they've been with their current manager.
So, is it possible to cut at different times for each row? If my understanding of this data is also incorrect I'd be open to suggestions there too.
If I do cut= YearsAtCompany - YearsWithCurrManager (or something along those lines) that's just going to create a vector of all of those differences in time, which isn't what I want.
精彩评论