Survival mixture model simulation

rsurv_mix(
  cf = 0.2,
  n = 200,
  distn = c("exp", "exp"),
  prop_cens = 0.1,
  params = list(list(mu = c(2.5, 0.005)), list(mu = c(-8, 0.005))),
  X = rep(c(10, 25, 50, 100), each = 50)
)

Examples

rsurv_mix(cf = 0.2, n = 200, distn = c("exp", "exp"), prop_cens = 0.1, params = list( list( mu = c(2.5, 0.005)), list( mu = c(-8, 0.005))), X = rep(c(10, 25, 50, 100), each = 50))
#> Error in rsurv_mix(cf = 0.2, n = 200, distn = c("exp", "exp"), prop_cens = 0.1, params = list(list(mu = c(2.5, 0.005)), list(mu = c(-8, 0.005))), X = rep(c(10, 25, 50, 100), each = 50)): could not find function "rsurv_mix"