Computes predictions for survival probability, cumulative hazard, or risk at specified time points for new data or existing data. Includes standard errors and confidence intervals.
# S3 method for phreg
predict(
object,
newdata,
times = NULL,
individual.time = FALSE,
tminus = FALSE,
se = TRUE,
robust = FALSE,
conf.type = "log",
conf.int = 0.95,
km = FALSE,
...
)An object of class "predictphreg" containing:
Matrix of survival probabilities.
Matrix of cumulative hazards.
Matrix of cumulative incidence functions (if applicable).
Vector of time points.
Confidence bounds for survival.
Relative risks.
Object of class "phreg".
Data frame for prediction. If NULL, predictions are made for the original data.
Time points for prediction. Defaults to all unique event times in the model.
Logical; if TRUE, uses one time per subject (requires newdata and times to be same length).
Logical; if TRUE, predicts at \(t-\) (strictly before \(t\)).
Logical; if TRUE, computes standard errors and confidence intervals.
Logical; if TRUE, uses robust standard errors (default for most functions).
Transformation for survival estimates: "log" (default) or "plain".
Confidence level (default 0.95).
Logical; if TRUE, uses Kaplan-Meier product-limit for baseline; otherwise uses exponential of cumulative baseline.
Additional arguments for plotting functions.
Thomas Scheike