cfc.survreg {CFC} | R Documentation |
Convenient function to build cause-specific, parametric survival models using the survival package. This is followed by application of cfc
function to produce cumulative incidence functions.
cfc.survreg(formula, data, newdata = NULL, dist = "weibull" , control = survreg.control(), tout, Nmax = 100L , rel.tol = 1e-05)
formula |
Survival formula with a multi-state status variable. See |
data |
Data frame containing variables listed in |
newdata |
Data frame of structure similar to |
dist |
One of |
control |
List of |
tout |
Time points, along which to produce the cumulative incidence curves. |
Nmax |
Maximum number of subdivisions to be used in the |
rel.tol |
Threshold for relative error in |
A list with the following elements:
K |
Number of causes. |
formulas |
List of formulas used in each of the |
regs |
List of all cause-specific regression objects returned by |
tout |
Same as input. |
cfc |
An object of class |
Mansour T.A. Sharabiani, Alireza S. Mahani
Mahani A.S. and Sharabiani M.T.A. (2019). Bayesian, and Non-Bayesian, Cause-Specific Competing-Risk Analysis for Parametric and Nonparametric Survival Functions: The R Package CFC. Journal of Statistical Software, 89(9), 1-29. doi:10.18637/jss.v089.i09
data(bmt) formul <- Surv(time, cause) ~ platelet + age + tcell ret <- cfc.survreg(formul, bmt[1:300, ], bmt[-(1:300), ] , Nmax = 300, rel.tol = 1e-3)