plot.mixturecure | R Documentation |
This function plots either the coefficient path, the AIC, the cAIC, the BIC,
or the log-likelihood for a fitted curegmifs
or cureem
object.
This function produces a lollipop plot of the coefficient estimates for a
fitted cv_curegmifs
or cv_cureem
object.
## S3 method for class 'mixturecure'
plot(
x,
type = c("trace", "AIC", "BIC", "logLik", "cAIC", "mAIC", "mBIC", "EBIC"),
xlab = NULL,
ylab = NULL,
label = FALSE,
main = NULL,
...
)
x |
a |
type |
a case-sensitive parameter indicating what to plot on the y-axis. The complete list of options are:
This option has no effect for objects fit using
|
xlab |
a default x-axis label will be used which can be changed by specifying a user-defined x-axis label. |
ylab |
a default y-axis label will be used which can be changed by specifying a user-defined y-axis label. |
label |
logical. If TRUE the variable names will appear in a legend.
Applicable only when |
main |
a default main title will be used which can be changed by
specifying a user-defined main title. This option is not used for
|
... |
other arguments. |
this function has no returned value but is called for its side effects
curegmifs
, cureem
,
coef.mixturecure
, summary.mixturecure
,
predict.mixturecure
library(survival)
withr::local_seed(1234)
temp <- generate_cure_data(n = 100, j = 10, n_true = 10, a = 1.8)
training <- temp$training
fit <- curegmifs(Surv(Time, Censor) ~ .,
data = training, x_latency = training,
model = "weibull", thresh = 1e-4, maxit = 2000,
epsilon = 0.01, verbose = FALSE
)
plot(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.