Simulated data subject to non-informative right-censoring. Treatment is allocated at random. The data are simulated with sim_func1 with n=10000.

example2

Format

A data frame with two confounders W1 and W2, the time of the outcome Y, time until censoring for two reasons C1 and C2 (NA if any of the times to event are censored), a treatment A, and an indicator J, that denotes whether Y is an event of interest versus a competing event.