Not my exact setup, but for easier explanation imagine I'm working on a project that looks at user session data on a website (like netflix). The idea is to understand how video playback errors might cause users to leave the website.
Playback errors are rare, and just looking at correlation of playback errors and session length would give an incorrect interpretation because longer sessions will generally have more playback errors (since more videos watched means more opportunities for errors).
The data I have is the user session length, timestamps of all playback errors in the session, and user demographic information.
My idea was to do a survival analysis (perhaps a cox ph model) where a "failure" is the user leaving the website, but how would I include playback errors as a covariate, since doing so will lead to a bad interpretation? Or is there a different method that would be better suited for this?