plot.mixturecure {hdcuremodels}R Documentation

Plot fitted mixture cure model

Description

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.

Usage

## S3 method for class 'mixturecure'
plot(x, type = "trace", xlab = NULL, ylab = NULL, main = NULL, ...)

Arguments

x

a mixturecure object resulting from curegmifs or cureem, cv_curegmifs or cv_cureem.

type

default is "trace" which plots the coefficient path for the fitted object. Also available are "AIC", "cAIC", "mAIC", "BIC", "mBIC", "EBIC", and "logLik". This option has no effect for objects fit using cv_curegmifs or cv_cureem.

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.

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 cv_curegmifs or cv_cureem fitted objects.

...

other arguments.

Value

this function has no returned value but is called for its side effects

See Also

curegmifs, cureem, coef.mixturecure, summary.mixturecure, predict.mixturecure

Examples

library(survival)
set.seed(1234)
temp <- generate_cure_data(N = 100, J = 10, nTrue = 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)

[Package hdcuremodels version 0.0.1 Index]