survcorr(formula1, formula2,
data, methods = "imi", alpha = 0.05, intra = FALSE,
M = 10, MCMCSteps = 10, epsilon = 0.001, maxiter = 100)
Surv(time1, status1)~1
Surv(time2, status2)~1
"imi"
(iterative multiple imputation) is implemented.## Example 1
data(kidney)
obj = survcorr(formula1=Surv(TIME1, STATUS1) ~ 1, formula2=Surv(TIME2, STATUS2) ~ 1,
data=kidney, M=1000, MCMCSteps=10, alpha=0.05, epsilon=0.001)
## Example 2
data(diabetes)
obj = survcorr(formula1=Surv(TIME1, STATUS1) ~ 1, formula2=Surv(TIME2, STATUS2) ~ 1,
data=diabetes, M=100, MCMCSteps=10, alpha=0.05, epsilon=0.001)
plot(obj, "times")
Run the code above in your browser using DataLab