predict.ciregic | R Documentation |
predict
method for class ciregic
. It provides the predicted cumulative incidence function for a given covariate pattern and timepoint(s).
## S3 method for class 'ciregic' predict(object, covp, times, ...)
object |
an object of class |
covp |
a desired values for covariates |
times |
time points that user wants to predict value of cumulative incidence function |
... |
further arguments |
predict.ciregic
returns the predicted cumulative incidence function for a given covariate pattern and timepoint(s).
The function predict.ciregic
returns a list of predicted values of the model from object
.
t |
time points |
cif1 |
the predicted value of cumulative incidence function for the event type 1 |
cif2 |
the predicted value of cumulative incidence function for the event type 2 |
The fitted semiparametric regression on cumulative incidence function with interval-censored competing risks data ciregic
and summary of the fitted semiparametric regression model summary.ciregic
## Continuing the ciregic(...) example pfit <- predict(object = fit, covp = c(1, 0.5), times = c(0.1, 0.15, 0.5, 0.7)) pfit mint <- fit$tms[1] maxt <- fit$tms[2] pfit1 <- predict(object = fit, covp = c(1, 0.5), times = seq(mint, maxt, by = (maxt-mint)/99)) plot(pfit1$t, pfit1$cif1, ylim = c(0, 1), type = "l") lines(pfit1$t, pfit1$cif2, ylim = c(0, 1), lty = 2, col = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.