A dataset containing 200 patients with time-to-exposure, time-to-event, and covariates.

dummy_data

Format

A data frame with 200 rows and 6 variables:

id

Patient identifier

timetoexposure

Time to exposure, continuous, NA for non-exposed patients

exposure

Binary, 1 = exposed, 0 = not exposed

event

Event occurrence, binary, 1 = event, 0 = censored

timetoevent

Time to event, continuous, capped at 365

cov1

Binary covariate - positively associated with both time-to-exposure and time-to-event

cov2

Continuous covariate - positively associated with both time-to-exposure and time-to-event