print.mixturecure {hdcuremodels}R Documentation

Print the contents of a mixture cure fitted object

Description

This function prints the names of the list objects from a curegmifs, cureem, cv_cureem, or cv_curegmifs fitted model.

Usage

## S3 method for class 'mixturecure'
print(x, ...)

Arguments

x

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

...

other arguments.

Value

names of the objects in a mixturecure object fit using cureem, curegmifs, cv_cureem, or cv_curegmifs.

Note

The contents of an mixturecure fitted object differ depending upon whether the EM (cureem) or GMIFS (curegmifs) algorithm is used for model fitting. Also, the output differs depending upon whether x.latency is specified in the model (i.e., variables are included in the latency portion of the model fit) or only terms on the right hand side of the equation are included (i.e., variables are included in the incidence portion of the model).

See Also

curegmifs, cureem, coef.mixturecure, summary.mixturecure, plot.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)
print(fit)

[Package hdcuremodels version 0.0.1 Index]