Learn R Programming

hdcuremodels (version 0.0.6)

print.mixturecure: Print the contents of a mixture cure fitted object

Description

This function prints the first several incidence and latency coefficients, the rate (when fitting an exponential or Weibull mixture cure model), and alpha (when fitting a Weibull mixture cure model). This function returns the fitted object invisible to the user.

Usage

# S3 method for mixturecure
print(x, max = 6, ...)

Value

prints coefficient estimates for the incidence portion of the model and if included, prints the coefficient estimates for the latency portion of the model. Also prints rate for exponential and Weibull models and scale (alpha) for the Weibull mixture cure model. Returns all objects fit using cureem, curegmifs, cv_cureem, or cv_curegmifs.

Arguments

x

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

max

maximum number of rows in a matrix or elements in a vector to display

...

other arguments.

See Also

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

Examples

Run this code
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
)
print(fit)

Run the code above in your browser using DataLab