fit.models.cure | R Documentation |
fit.models.cure
fits parametric mixture cure survival models for health economic evaluations.
fit.models.cure(formula = NULL, data, distr = NULL, method = "mle", ...)
formula |
a formula specifying the model to be used, in the form Surv(time,event)~treatment+covariates for flexsurv. |
data |
A data frame containing the data to be used for the analysis. This must contain data for the 'event' variable. In case there is no censoring, then event is a column of 1s. |
distr |
a (vector of) string(s) containing the name(s) of the model(s) to be fitted. Available options are: flexsurv: "exponential","gamma","genf","gengamma","gompertz","weibull", "weibullPH","loglogistic","lognormal" INLA: "exponential","weibull","lognormal","loglogistic" hmc: "exponential","gamma","genf","gengamma","gompertz","weibull","weibullPH", "loglogistic","lognormal". |
A model object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.