A simulated dataset with a right censored outcome with confounding from two sources, dependant censoring, and a competing risk. The data are simulated with sim_func1 with n=10000.

example1

Format

A data frame with two confounders W1 and W2, the time of the outcome Y, time until censoring C (NA if either times are censored), and a treatment A.