I'm working on a survival analysis in R using the survival package - and I am wondering what modifications I need to account for when using right-truncated data (which I think is what I have) (there doesn't seem to be as much info on this as the other types of truncation or censoring!)
Briefly - insects evolve resistance to insecticides, and cease to be useful - I have the duration before the evolution of resistance for certain insecticides used against various insect pests - however, the insecticides only show up if resistance evolves - if resistance never evolves, there is no record for that event (since it hasn't happened). Here is a bit of what the data looks like:
Where "until_res" is the years until resistance evolves. Insecticides with no resistance aren't there. There isn't really a record of it (since it would require figuring out everywhere in the world a certain chemical has been applied to a pest, and generally reporting only occurs when resistance evolves).
I've been able to run some models (here is a KM plot)
I've read that I need to account for this in modelling, but haven't found any examples - does anyone have any advice? Thanks!