Learn R Programming

mets (version 1.2.5)

predict.phreg: Predictions from proportional hazards model

Description

Predictions from proportional hazards model

Usage

# 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, ...)

Arguments

object

phreg object

newdata

data.frame

times

Time where to predict variable, default is all time-points from the object sorted

individual.time

when TRUE then newdata and times have same length and makes only predictions for these individual times.

tminus

to make predictions in T- that is just before, useful for IPCW techniques

se

with standard errors and upper and lower confidence intervals.

robust

to get robust se's.

conf.type

transformation for suvival estimates, default is log

conf.int

significance level

...

Additional arguments to plot functions