Usage
predict.survreg(object, newdata,
type=c("response", "link", "linear", "response", "terms", "quantile",
"uquantile"),
se.fit=F, terms=labels.lm(object), p=c(0.1, 0.9))
Arguments
object
result of a model fit using the survreg
function.
newdata
data for prediction. If absent, predictions are for the
subjects used in the original fit.
type
the type of predicted value.
This can be on the original scale of the data (response),
the linear predictor ("linear"
, with "lp"
as an allowed abbreviation),
a predicted quantile on the original scale of the data ("quantil
se.fit
if TRUE, include the standard errors of the prediction in the result.
terms
subset of terms. The default for residual type "terms"
is a matrix with
one column for every term (excluding the intercept) in the model.
p
vector of percentiles. This is used only for quantile predictions.