fit.models.cure: Fit parametric mixture cure survival models for health...

fit.models.cureR Documentation

Fit parametric mixture cure survival models for health economic evaluations.

Description

fit.models.cure fits parametric mixture cure survival models for health economic evaluations.

Usage

fit.models.cure(formula = NULL, data, distr = NULL, method = "mle", ...)

Arguments

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".

Value

A model object.


DARTH-git/darthtools documentation built on April 3, 2025, 2:12 p.m.