diag_crr(formula, data, test = c("lin", "prop"), Nit = 20, n.sim = 1000, n.plot = 10,
seed = NULL, minor_included = 1)Fine, Jason P., and Robert J. Gray. "A proportional hazards model for the subdistribution of a competing risk." Journal of the American statistical association 94.446 (1999): 496-509.
diag_lin, diag_prop, plot.diaglin, plot.diagprop, print.diaglin, print.diagprop
data(dat1)
out1 <- diag_crr(Crsk(time,cause)~z1+z2,data=dat1,test="lin",seed=1234)
print(out1)
plot(out1)
data(dat2)
out2 <- diag_crr(Crsk(time,cause)~z1+z2,data=dat2,test="prop",seed=1234)
print(out2)
plot(out2)
Run the code above in your browser using DataLab