Recent medical advances have led to long-term overall or disease-free survival for at least a subset of treated subjects for various diseases, such that some patients’ overall survival is consistent with their population expected survival. Conventionally, we call the subset of subjects who are immune to the event of interest cured while all other subjects are susceptible to the event. When performing a time-to-event analysis to data that includes a subset of subjects who are cured, mixture cure models (MCMs) are a useful alternative to the Cox proportional hazards (PH) model. This is because the Cox PH model assumes a constant hazard applies to all subjects throughout the observed follow-up time which is violated when some subjects in the dataset are cured (Goldman 1991). Additionally, when cured subjects comprise a portion of the dataset, the survival function is improper.
MCMs model the proportion cured separately from the time-to-event
outcome for those susceptible and thus consist of two components: the
incidence component, which models cured versus susceptible, and the
latency component, which models the time-to-event among those
susceptible. In the hdcuremodels
package we allow the
covariates in the two components of the model to differ, so x and w represent the covariates
in the indicidence and latency components of the model, respectively.
The mixture cure survival function is given by S(t|x, w) = (1 − p(x)) + p(x)Su(t, w|Y = 1)
where p(x)
represents the probability of being susceptible, 1 − p(x) represents
the probability of being cured, and Su(t, (w)|Y = 1)
represents the survival function (or latency) for those susceptible.
Thus, the mixture cure model structure allows one to investigate the
effect of covariates on two components of the model: incidence
(susceptible versus cured) and latency (time-to-event for susceptibles).
The incidence component is ordinarily modeled using logistic regression
and we have parameters β0 and vector of
coefficients βinc.
The latency or time-to-event function for susceptibles can be modeled in
different ways, using for example a parametric, a non-parametric, or
semi-parametric survival model. Therefore, the vector of coefficients
βlat
in the latency portion of the model may be accompanied by a shape and
scale parameters if a Weibull or exponential model are fit.
The hdcuremodels
R package was developed for fitting
penalized mixture cure models when there is a high-dimensional covariate
space, such as when high-throughput genomic data are used in modeling
time-to-event data when some subjects will not experience the event of
interest. The package includes the following functions for model
fitting: curegmifs
, cureem
,
cv_curegmifs
, and cv_cureem
. The functions
curegmifs
and cureem
are used for fitting a
penalized mixture cure model. The distinction between
curegmifs
and cureem
is the algorithm used and
the types of time-to-event models that can be fit. The
curegmifs
function can be used to fit penalized Weibull and
penalized exponential models where the solution is obtained using the
generalized monotone incremental forward stagewise (GMIFS) method (Fu et
al, 2022). The cureem
function can be used to fit penalized
Cox proportional hazards, Weibull, and exponential models where the
solution is obtained using the Expectation-Maximization (E-M) algorithm
(Archer et al, 2024). Both cv_curegmifs
and
cv_cureem
can be used for performing cross-validation for
model selection and for performing variable selection using the model-X
knockoff procedure with false discovery rate control (Candes et al,
2018). Aside from these model fitting functions, other functions have
been included for testing assumptions required for fitting a mixture
cure model. This vignette describes the syntax required for each of our
penalized mixture cure models.
The hdcuremodels
and survival
packages
should be loaded.
The package includes two datasets: amltrain
(Archer et
al, 2024) and amltest
(Archer et al, 2024; Bamopoulos et al
2020). Both datasets include patients diagnosed with acute myeloid
leukemia (AML) who were cytogenetically normal at diagnosis along with
the same variables: cryr
is the duration of complete
response (in years), relapse.death
is a censoring variable
where 1 indicates the patient relapsed or died and 0 indicates the
patient was alive at last follow-up, and expression for 320 transcripts
measured using RNA-sequencing. The restriction to 320 transcripts was to
reduce run time. Therefore, results obtained with these data will not
precisely recapitulate those in the original publication (Archer et al,
2024). amltrain
includes the 306 subjects that were used
for training the penalized MCM while amltest
includes the
40 subjects that were used to test the penalized MCM.
We also included a function, generate_cure_data
, that
allows the user to generate time-to-event data that includes a cured
fraction. Various parameters in this function will allow the user to
explore the impact of sample size (n
), number of variables
(j
), number of variables truly associated with the outcome
(n_true
), effect size or signal amplitude (a
),
and correlation among variables (rho
) on variable selection
and model fit.
The workflow for fitting a mixture cure model should include the
assessment of two assumptions: first, that a non-zero cure fraction is
present; second, that there is sufficient follow-up (Maller and Zhou,
1996). Inferential tests for assessing these two assumptions are
included in the hdcuremodels
package. The functions
nonzerocure_test
and sufficient_fu_test
both
take a survfit
object as their argument.
As can be seen from the Kaplan-Meier plot, there is a long-plateau
that does not drop down to zero. This may indicate the presence of a
cured fraction. We can test the null hypothesis that the cured fraction
is zero against the alternative hypothesis that the cured fraction is
not zero using nonzerocure_test
(Maller and Zhou,
1996).
nonzerocure_test(km_train)
#> $proportion_susceptible
#> [1] 0.7146919
#>
#> $proportion_cured
#> [1] 0.2853081
#>
#> $p_value
#> [1] "< 0.001"
#>
#> $time_95_percent_of_events
#> [1] 5.294299
Given the small p-value we reject the null hypothesis and conclude
there is a non-zero cure fraction present. We can also extract the cured
fraction as the Kaplan-Meier estimate beyond the last observed event
(Goldman, 1991) using the cure_estimate
function.
This estimate requires sufficiently long follow-up which can be
tested using the sufficient_fu_test
function (Maller and
Zhou, 1996).
This function tests the null hypothesis of insufficient follow-up against the alternative that there is sufficient follow-up. Based on these results, we reject the null hypothesis and conclude there is sufficient follow-up. Having verified these two assumptions, we can now fit a mixture cure model.
The primary function for fitting parametric models using the GMIFS
algorithm in the hdcuremodels
package is
curegmifs
. The function arguments are
args(curegmifs)
#> function (formula, data, subset, x_latency = NULL, model = c("weibull",
#> "exponential"), penalty_factor_inc = NULL, penalty_factor_lat = NULL,
#> epsilon = 0.001, thresh = 1e-05, scale = TRUE, maxit = 10000,
#> inits = NULL, verbose = TRUE, ...)
#> NULL
The curegmifs
function accepts a model formula that
specifies the time-to-event outcome on the left-hand side of the
equation as a Surv
object and any incidence predictor
variable(s) on the right-hand side of the equation. Note that at least
some incidence predictor variables must be included in order to fit a
penalized mixture cure model, otherwise, the survival
package functions should be used to fit time-to-event models that lack
an incidence component. The data
parameter specifies the
name of the data.frame and the optional subset
parameter
can be used to limit model fitting to a subset of observations in the
data. The x_latency
parameter specifies the variables to be
included in the latency portion of the model and can be either a matrix
of predictors, a model formula with the right hand side specifying the
latency variables, or the same data.frame passed to the
data
parameter. Note that when using the model formula
syntax for x_latency
it cannot handle
x_latency = ~ .
. The curegmifs
function can
fit either a either "weibull"
or "exponential"
model, which is specified using the model
parameter. Other
parameters include penalty_factor_inc
which is an optional
numeric vector with length equal to the number of incidence variables,
where 1 indicates that variable should be penalized and 0 indicates that
variable is unpenalized (default is that all variables are penalized).
Likewise penalty_factor_lat
is an optional numeric vector
with length equal to the number of latency variables, where 1 indicates
that variable should be penalized and 0 indicates that variable is
unpenalized (default is that all variables are penalized). Unpenalized
predictors are those that we want to coerce into the model (e.g., age)
so that no penalty is applied. By default the variables are centered and
scaled (scale = TRUE
). The parameter epsilon
is the size of the coefficient update at each step (default = 0.001).
The GMIFS algorithm stops when either the difference between successive
log-likelihoods is less than thresh
(default 1e-05) or the
algorithm has exceeded the maximum number of iterations
(maxit
). Initialization is automatically provided by the
function though inits
can be used to provide initial values
for the incidence intercept, unpenalized incidence and latency
coefficients, rate parameter, and shape parameter if fitting a Weibull
mixture cure model. By default verbose = TRUE
so that
running information is echoed to the R console.
fitgmifs <- curegmifs(Surv(cryr, relapse.death) ~ ., data = amltrain,
x_latency = amltrain, model = "weibull")
Details of the GMIFS mixture cure model have been described in Fu et al, 2022.
The primary function for fitting penalized MCMs using the E-M
algorithm in the hdcuremodels
package is
cureem
. The function arguments are
args(cureem)
#> function (formula, data, subset, x_latency = NULL, model = c("cox",
#> "weibull", "exponential"), penalty = c("lasso", "MCP", "SCAD"),
#> penalty_factor_inc = NULL, penalty_factor_lat = NULL, thresh = 0.001,
#> scale = TRUE, maxit = NULL, inits = NULL, lambda_inc = 0.1,
#> lambda_lat = 0.1, gamma_inc = 3, gamma_lat = 3, ...)
#> NULL
The cureem
function accepts a model formula that
specifies the time-to-event outcome on the left-hand side of the
equation as a Surv
object and any incidence predictor
variable(s) on the right-hand side of the equation. Note that at least
some incidence predictor variables must be included in order to fit a
penalized mixture cure model, otherwise, the survival
package functions should be used to fit time-to-event models that lack
an incidence component. The data
parameter specifies the
name of the data.frame and the optional subset
parameter
can be used to limit model fitting to a subset of observations in the
data. The x_latency
parameter specifies the variables to be
included in the latency portion of the model and can be either a matrix
of predictors, a model formula with the right hand side specifying the
latency variables, or the same data.frame passed to the
data
parameter. Note that when using the model formula
syntax for x_latency
it cannot handle
x_latency = ~ .
. The cureem
function can fit
one of three models which is specified using the model
parameter, which can be either "cox"
(default),
"weibull"
, or "exponential"
. Other parameters
include penalty
which can be "lasso"
,
"MCP"
, or "SCAD"
when fitting a
"cox"
model but must be "lasso"
when fitting a
"weibull"
or "exponential"
model.
penalty_factor_inc
is an optional numeric vector with
length equal to the number of incidence variables, where 1 indicates
that variable should be penalized and 0 indicates that variable is
unpenalized (default is that all variables are penalized). Likewise
penalty_factor_lat
is an optional numeric vector with
length equal to the number of latency variables, where 1 indicates that
variable should be penalized and 0 indicates that variable is
unpenalized (default is that all variables are penalized). Unpenalized
predictors are those that we want to coerce into the model (e.g., age)
so that no penalty is applied. The iterative process stops when the
differences between successive expected penalized complete-data
log-likelihoods for both incidence and latency components are less than
thresh
(default = 0.001). By default the variables are
centered and scaled (scale = TRUE
). The user can specify
the maximum number of passes over the data for each lambda using
maxit
, which defaults to 100 when
penalty = "lasso"
and 1000 when either
penalty = "MCP"
or penalty = "SCAD"
.
Initialization is automatically provided by the function though
inits
can be used to provide initial values for the
incidence intercept, unpenalized indicidence and latency coefficients,
rate parameter (for Weibull and exponential MCM), and shape parameter
(for Weibull MCM). By default verbose = TRUE
so that
running information is echoed to the R console. The user can also
specify the penalty parameter for the incidence
(lambda_inc
) and latency (lambda_lat
) portions
of the model and the γ penalty
when MCP or SCAD is used (gamma_inc
and
gamma_lat
).
Details of the E-M MCM have been described in the Supplementary Material of Archer et al, 2024.
There is a function for performing cross-validation (CV)
corresponding to each of the two optimization methods. The primary
function for fitting cross-validated penalized MCMs using the E-M
algorithm in the hdcuremodels
package is
cv_cureem
. The function arguments are
args(cv_cureem)
#> function (formula, data, subset, x_latency = NULL, model = c("cox",
#> "weibull", "exponential"), penalty = c("lasso", "MCP", "SCAD"),
#> penalty_factor_inc = NULL, penalty_factor_lat = NULL, fdr_control = FALSE,
#> fdr = 0.2, grid_tuning = FALSE, thresh = 0.001, scale = TRUE,
#> maxit = NULL, inits = NULL, lambda_inc_list = NULL, lambda_lat_list = NULL,
#> nlambda_inc = NULL, nlambda_lat = NULL, gamma_inc = 3, gamma_lat = 3,
#> lambda_min_ratio_inc = 0.1, lambda_min_ratio_lat = 0.1, n_folds = 5,
#> measure_inc = c("c", "auc"), one_se = FALSE, cure_cutoff = 5,
#> parallel = FALSE, seed = NULL, verbose = TRUE, ...)
#> NULL
The cv_cureem
function accepts a model formula that
specifies the time-to-event outcome on the left-hand side of the
equation as a Surv
object and any incidence predictor
variable(s) on the right-hand side of the equation. Note that at least
some incidence predictor variables must be included in order to fit a
penalized mixture cure model, otherwise, the survival
package functions should be used to fit time-to-event models that lack
an incidence component. The data
parameter specifies the
name of the data.frame and the optional subset
parameter
can be used to limit model fitting to a subset of observations in the
data. The x_latency
parameter specifies the variables to be
included in the latency portion of the model and can be either a matrix
of predictors, a model formula with the right hand side specifying the
latency variables, or the same data.frame passed to the
data
parameter. Note that when using the model formula
syntax for x_latency
it cannot handle
x_latency = ~ .
. The cv_cureem
function can
fit one of three models which is specified using the model
parameter, which can be either "cox"
(default),
"weibull"
, or "exponential"
. Other parameters
include penalty
which can be "lasso"
,
"MCP"
, or "SCAD"
when fitting a
"cox"
model but must be "lasso"
when fitting a
"weibull"
or "exponential"
model.
penalty_factor-inc
is an optional numeric vector with
length equal to the number of incidence variables, where 1 indicates
that variable should be penalized and 0 indicates that variable is
unpenalized (default is that all variables are penalized). Likewise
penalty_factor_lat
is an optional numeric vector with
length equal to the number of latency variables, where 1 indicates that
variable should be penalized and 0 indicates that variable is
unpenalized (default is that all variables are penalized). Unpenalized
predictors are those that we want to coerce into the model (e.g., age)
so that no penalty is applied. The user can choose to use the model-X
knock-off procedure to control the false discovery rate (FDR) by
specifying fdr_control = TRUE
and optionally changing the
FDR threshold (default fdr = 0.20
) (Candes et al, 2018). To
identify the optimal λ for the
incidence and latency portions of the model, the user can set
grid_tuning = TRUE
(default is that one value for λ is used in both portions of the
model). Other useful parameters for the cross-validation function
include n_folds
, an integer specifying the number of folds
for the k-fold cross-validation procedure (default is 5);
measure_inc
which specifies the evaluation criterion used
in selecting the optimal penalty which can be "c"
for the
C-statistic using cure status weighting (Asano and Hirakawa, 2017) or
"auc"
for cure prediction using mean score imputation
(Asano et al, 2014) (default is measure_inc = "c"
);
one_se
is a logical variable that if TRUE then the one
standard error rule is used which selects the most parsimonious model
having evaluation criterion no more than one standard error worse than
that of the best evaluation criterion (default is FALSE); and
cure_cutoff
which is a numeric value representing the
cutoff time used to represent subjects not experiencing the event by
this time are cured which is used to produce a proxy for the unobserved
cure status when calculating the C-statistic and AUC (default is 5). If
the logical parameter parallel
is TRUE, cross-validation
will be performed using parallel processing which requires the
foreach
and doMC
R packages. To foster
reproducibility of cross-validation results, seed
can be
set to an integer.
As with cureem
, the iterative process stops when the
differences between successive expected penalized complete-data
log-likelihoods for both incidence and latency components are less than
thresh
(default = 0.001). By default the variables are
centered and scaled (scale = TRUE
). The user can specify
the maximum number of passes over the data for each lambda using
maxit
, which defaults to 100 when
penalty = "lasso"
and 1000 when either
penalty = "MCP"
or penalty = "SCAD"
.
Initialization is automatically provided by the function though
inits
can be used to provide initial values for the
incidence intercept, unpenalized indicidence and latency coefficients,
rate parameter (for Weibull and exponential MCM), and shape parameter
(for Weibull MCM). When model = "cox"
, inits
should also include a numeric vector for the latency survival
probabilities. Optionally, the user can supply a numeric vector to
search for the optimal penalty for the incidence portion
(lambda_inc_list
) and a numeric vector to search for the
optimal penalty for the latency portion (lambda_lat_list
)
of the model. By default the number of values to search for the optimal
incidence penalty is 10 which can be changed by specifying an integer
for nlambda_int
and similarly for latency by specifying an
integer for nlambda_lat
. If penalty
is either
"MCP"
or "SCAD"
, the user can optionally
specify the penalization parameter γ for the incidence
(gamma_inc
) and latency (gamma_lat
) portions
of the model. By default verbose = TRUE
so that running
information is echoed to the R console. The user can also specify the
penalty parameter for the incidence (lambda_inc
) and
latency (lambda_lat
) portions of the model and the γ penalty when MCP or SCAD is used
(gamma_inc
and gamma_lat
).
set.seed(26)
fit_cv <- cv_cureem(Surv(Time, Censor) ~ ., data = training,
x_latency = training, fdr_control = FALSE,
grid_tuning = FALSE, nlambda_inc = 10,
nlambda_lat = 10, n_folds = 2, seed = 23,
verbose = TRUE)
#> Fold 1 out of 2 training...
#> Fold 2 out of 2 training...
#> Selected lambda for incidence: 0.052
#> Selected lambda for latency: 0.052
#> Maximum C-statistic: 0.720336199709405
#> Fitting a final model...
Notice in the previous section describing cureem
that
values were supplied for the λ
penalty parameters for both the incidence and latency portions of the
model using lambda_inc
and lambda_lat
. Those
values were determined from the following repeated 10-fold
cross-validation where the optimal λ for the incidence portion was
identified by fitting the models to maximize the AUC while the optimal
λ for the latency portion was
identified by fitting the models to maximize the C-statistic. After the
CV procedure the mode for each was taken. Because the run time for the
repeated 10-fold CV procedure was 5.65 hours, this code chunk is not
evaluated herein.
lambda_inc <- lambda_lat <- rep(0, 100)
for (k in 1:100) {
print(k)
coxem_auc_k <- cv_cureem(Surv(cryr, relapse.death) ~ .,
data = amltrain, x_latency = amltrain,
model = "cox", penalty = "lasso",
scale = TRUE, grid_tuning = TRUE,
nfolds = 10, nlambda_inc = 20,
nlambda_lat = 20, verbose = FALSE,
parallel = TRUE, measure_inc = "auc")
lambda_inc[k] <- coxem_auc_k$selected_lambda_inc
coxem_c_k <- cv_cureem(Surv(cryr, relapse.death) ~ ., data = amltrain,
x_latency = amltrain, model = "cox",
penalty = "lasso", scale = TRUE,
grid_tuning = TRUE, nfolds = 10,
nlambda_inc = 20, nlambda_lat = 20,
verbose = FALSE, parallel = TRUE,
measure_inc = "c")
lambda_lat[k]<-coxem_c_k$selected_lambda_lat
}
table(lambda_inc)
table(lambda_lat)
The primary function for fitting cross-validated penalized MCMs using
the GMIFS algorithm in the hdcuremodels
package is
cv_curegmifs
. The function arguments are
args(cv_curegmifs)
#> function (formula, data, subset, x_latency = NULL, model = c("weibull",
#> "exponential"), penalty_factor_inc = NULL, penalty_factor_lat = NULL,
#> fdr_control = FALSE, fdr = 0.2, epsilon = 0.001, thresh = 1e-05,
#> scale = TRUE, maxit = 10000, inits = NULL, n_folds = 5, measure_inc = c("c",
#> "auc"), one_se = FALSE, cure_cutoff = 5, parallel = FALSE,
#> seed = NULL, verbose = TRUE, ...)
#> NULL
The cv_curegmifs
function accepts a model formula that
specifies the time-to-event outcome on the left-hand side of the
equation as a Surv
object and any incidence predictor
variable(s) on the right-hand side of the equation. Note that at least
some incidence predictor variables must be included in order to fit a
penalized mixture cure model, otherwise, the survival
package functions should be used to fit time-to-event models that lack
an incidence component. The data
parameter specifies the
name of the data.frame and the optional subset
parameter
can be used to limit model fitting to a subset of observations in the
data. The x_latency
parameter specifies the variables to be
included in the latency portion of the model and can be either a matrix
of predictors, a model formula with the right hand side specifying the
latency variables, or the same data.frame passed to the
data
parameter. Note that when using the model formula
syntax for x_latency
it cannot handle
x_latency = ~ .
. The cv_curegmifs
function can
fit either a either "weibull"
or "exponential"
model, which is specified using the model
parameter. Other
parameters include penalty_factor_inc
which is an optional
numeric vector with length equal to the number of incidence variables,
where 1 indicates that variable should be penalized and 0 indicates that
variable is unpenalized (default is that all variables are penalized).
Likewise penalty_factor_lat
is an optional numeric vector
with length equal to the number of latency variables, where 1 indicates
that variable should be penalized and 0 indicates that variable is
unpenalized (default is that all variables are penalized). Unpenalized
predictors are those that we want to coerce into the model (e.g., age)
so that no penalty is applied. The user can choose to use the model-X
knock-off procedure to control the false discovery rate (FDR) by
specifying fdr_control = TRUE
and optionally changing the
FDR threshold (default fdr = 0.20
) (Candes et al, 2018). By
default the variables are centered and scaled
(scale = TRUE
). The parameter epsilon
is the
size of the coefficient update at each step (default = 0.001). The GMIFS
algorithm stops when either the difference between successive
log-likelihoods is less than thresh
(default 1e-05) or the
algorithm has exceeded the maximum number of iterations
(maxit
). Initialization is automatically provided by the
function though inits
can be used to provide initial values
for the incidence intercept, unpenalized indicidence and latency
coefficients, rate parameter, and shape parameter if fitting a Weibull
mixture cure model. Other useful parameters for the cross-validation
function include n_folds
, an integer specifying the number
of folds for the k-fold cross-validation procedure (default is 5);
measure_inc
which specifies the evaluation criterion used
in selecting the optimal penalty which can be "c"
for the
C-statistic using cure status weighting (Asano and Hirakawa, 2017) or
"auc"
for cure prediction using mean score imputation
(Asano et al, 2014) (default is measure_inc = "c"
);
one_se
is a logical variable that if TRUE then the one
standard error rule is used which selects the most parsimonious model
having evaluation criterion no more than one standard error worse than
that of the best evaluation criterion (default is FALSE); and
cure_cutoff
which is a numeric value representing the
cutoff time used to represent subjects not experiencing the event by
this time are cured which is used to produce a proxy for the unobserved
cure status when calculating the C-statistic and AUC (default is 5). If
the logical parameter parallel
is TRUE, cross-validation
will be performed using parallel processing which requires the
foreach
and doMC
R packages. To foster
reproducibility of cross-validation results, seed
can be
set to an integer. By default verbose = TRUE
so that
running information is echoed to the R console.
The four modeling functions cureem
,
curegmifs
, cv_cureem
, and
cv_curegmifs
all result in an object of class
mixturecure
. Generic functions for resulting
mixturecure
objects are available for extracting meaningful
results. The print
function returns all objects stored in
the fitted model.
print(fitem)
#> [1] "b_path" "beta_path" "b0_path" "logLik_inc" "logLik_lat"
#> [6] "x_incidence" "x_latency" "y" "model" "scale"
#> [11] "method" "call" "cv"
The summary
function prints the following output for a
model fit using either cureem
or
curegmifs
:
summary(fitem)
#> Mixture cure model fit using the EM algorithm
#> at step = 25 logLik = -1113.55183538453
#> at step = 12 AIC = 2634.47640955092
#> at step = 12 mAIC = 5510.63178303021
#> at step = 12 cAIC = 3415.28410185861
#> at step = 12 BIC = 3382.91701504335
#> at step = 12 mBIC = 5423.13688876735
#> at step = 12 EBIC = 3777.8145382339
#>
The summary
function prints the following output for a
model fit using either cv_cureem
or
cv_curegmifs
when fdr_control = FALSE
:
summary(fit_cv)
#> Mixture cure model fit using the EM algorithm
#> using cross-validation
#> logLik = -459.971513552163
#> AIC = 979.943027104326
#> BIC = 1070.26208592721
#>
The summary
function prints the following output for a
model fit using either cv_cureem
or
cv_curegmifs
when fdr_control = TRUE
:
For a cureem
or curegmifs
fitted
mixturecure
object, the plot
function provides
a trace of the coefficients’ paths by default though the
type
parameter can be used to specify any of the
information criterion (“logLik”, “AIC”, “cAIC”, “mAIC”, “BIC”, “mBIC”,
“EBIC”). For a cv_cureem
or cv_curegmifs
fitted mixturecure
object, a lollipop plot of the estimated
incidence and latency coefficients is produced.
Coefficient estimates can be extracted from the fitted model using
the coef
for any of these model criteria (“logLik”, “AIC”,
“cAIC”, “mAIC”, “BIC”, “mBIC”, “EBIC”) or by specifying the step at
which the model is desired by specifying the model.select
parameter. For example,
is equivalent to
as demonstrated by comparing the results in each object:
names(coef_cAIC)
#> [1] "b0" "beta_inc" "beta_lat"
all.equal(coef_cAIC$rate, coef_12$rate)
#> [1] TRUE
all.equal(coef_cAIC$alpha, coef_12$alpha)
#> [1] TRUE
all.equal(coef_cAIC$b0, coef_12$b0)
#> [1] TRUE
all.equal(coef_cAIC$beta_inc, coef_12$beta_inc)
#> [1] TRUE
all.equal(coef_cAIC$beta_lat, coef_12$beta_lat)
#> [1] TRUE
Again, there are two sets of coefficients: those in the incidence
portion of the model (beta_inc
) and those in the latency
portion of the model (beta_lat
). Additionally,
b0
is the intercept in the incidence portion of the model.
Depending on the model fit, coef
will return
rate
(exponential and Weibull) and alpha
(Weibull).
Predictions can be extracted at a given step or information criterion
(“logLik”, “AIC”, “cAIC”, “mAIC”, “BIC”, “mBIC”, “EBIC”) using the
predict
function with model_select
specified.
This returns three objects: p_uncured
is the estimated
probability of being susceptible (p̂(x)),
linear_latency
is $\hat{\boldsymbol{\beta}}\mathbf{w}$, while
latency_risk
applies high risk and low risk labels using
zero as the cutpoint from the linear_latency
vector.
Perhaps we want to apply the 0.5 threshold to p_uncured
to
create Cured and Susceptible labels.
Then we can assess how well our MCM identified patients likely to be cured from those likely to be susceptible visually by examining the Kaplan-Meier curves.
We can assess how well our MCM identified higher versus lower risk patients among those predicted to be susceptible visually by examining the Kaplan-Meier curves.
km_suscept <- survfit(Surv(cryr, relapse.death) ~ train_predict$latency_risk, data = amltrain, subset = (p_group == "Susceptible"))
Of course, we expect our model to perform well on our training data.
We can also assess how well our fitted MCM performs using the
independent test set amltest
. In this case we use the
predict
function with newdata
specified.
Again we will apply the 0.5 threshold to p_uncured
to
create Cured and Susceptible labels.
Then we can assess how well our MCM identified patients likely to be cured from those likely to be susceptible visually by examining the Kaplan-Meier curves.
km_suscept_test <- survfit(Surv(cryr, relapse.death) ~ test_predict$latency_risk, data = amltest, subset = (test_p_group == "Susceptible"))
The hdcuremodels
package also includes two functions for
assessing the performance of MCMs. The ability of the MCM to
discriminate between those cured (Yi = 0) versus
those susceptible (Yi = 1) can be
assessed by calculating the mean score imputation area under the curve
using the auc_mcm
function (Asano et al, 2014). In a MCM,
when δi = 1 we know
that the subject experienced the event. However, when δi = 0 either
the subject was cured or the subject would have experienced the event if
followed longer than their censoring time. Therefore, for a
cure_cutoff
τ
(default is 5) the outcome Yi is defined as
$$
Y_i = \begin{cases}
0 \text{ if } T_i >\tau\\
1 \text{ if } T_i \le\tau \text{ and } \delta_i=1\\
\text{missing} \text{ if } T_i \le\tau \text{ and } \delta_i=0\\
\end{cases}.
$$ The mean score imputation AUC lets Yi = 1 − p̂(xi)
for those subjects with a missing outcome. The C-statistic for MCMs was
adapted to weight patients by their outcome (cured, susceptible,
censored) and is available in the concordance_mcm
function
(Asano & Hirakawa, 2017). In both functions, if newdata
is not specified, the training data are used.
Other R packages that can be used for fitting MCMs include:
cuRe
(Jakobsen, 2023) can be used to fit parametric
MCMs on a relative survival scale;CureDepCens
(Schneider and Grandemagne dos Santos,
2023) can be used to fit piecewise exponential or Weibull model with
dependent censoring;curephEM
(Hou and Ren, 2024) can be used to fit a MCM
where the latency is modeled using a Cox PH model;flexsurvcure
(Amdahl, 2022) can be used to fit
parametric mixture and non-mixture cure models;geecure
(Niu and Peng, 2018) can be used to fit
marginal MCM for clustered survival data;GORCure
(Zhou et al, 2017) can be used to fit
generalized odds rate MCM with interval censored data;mixcure
(Peng, 2020) can be used to fit non-parametric,
parametric, and semiparametric MCMs;npcure
(López-de-Ullibarri and López-Cheda, 2020) can
be used to non-parametrically estimate incidence and latency;npcurePK
(Safari et al, 2023) can be used to
non-parametrically estimate incidence and latency when cure is partially
observed;penPHcure
(Beretta and Heuchenne, 2019) can be used to
fit semi-parametric PH MCMs with time-varying covariates; andsmcure
(Cai et al 2022) can be used to fit
semi-parametric (PH and AFT) MCMs.None of these packages are capable of handling high-dimensional
datasets. Only penPHcure
includes LASSO penalty to perform
variable selection for scenarios when the sample size exceeds the number
of predictors.
Our hdcuremodels
R package can be used to model a
censored time-to-event outcome when a cured fraction is present, and
because penalized models are fit, our hdcuremodels
package
can accommodate datasets where the number of predictors exceeds the
sample size. The user can fit a model using one of two different
optimization methods (E-M or GMIFS) and can choose to perform
cross-valiation with or without FDR control. The modeling functions are
flexible in that there is no requirement for the predictors to be the
same in the incidence and latency components of the model. The package
also includes functions for testing mixture cure modeling assumptions.
Generic functions for resulting mixturecure
objects include
print
, summary
, coef
,
plot
, and predict
can be used to extract
meaningful results from the fitted model. Additionally,
auc_mcm
and concordance_mcm
were specifically
tailored to provide model performance statistics of the fitted MCM.
Finally, our previous paper demonstrated that our GMIFS and E-M
algorithms outperformed existing methods with respect to both variable
selection and prediction (Fu et al, 2022).