if (FALSE) {
# Detect number of cores
parallel::detectCores()
imps <- smcfcs.parallel(
smcfcs_func="smcfcs",
seed = 2021,
n_cores = 2,
originaldata = smcfcs::ex_compet,
m = 10,
smtype = "compet",
smformula = list(
"Surv(t, d == 1) ~ x1 + x2",
"Surv(t, d == 2) ~ x1 + x2"
),
method = c("", "", "norm", "norm")
)
}
Run the code above in your browser using DataLab