sim_frailty_data returns a dataset generated by the cure rate frailty
model.
sim_bch(N, theta = c(1, 0.5, 0), lambda = 1, A = 5, B = 15, prob = 0.5)Z, the actual event time;
L, the leftmost limit of the censored interval; R, the
rightmost limit of the censored interval; delta, the failure
indicator; xi1, the treatment covariate assuming 1 with probability
prob and 0 otherwise; xi2, second variable generated by a
standard normal distribution.