Evaluate terms in a smoothing spline ANOVA estimate of relative risk at arbitrary points. Standard errors of the terms can be requested for use in constructing Bayesian confidence intervals.
# S3 method for sscox
predict(object, newdata, se.fit=FALSE,
include=c(object$terms$labels,object$lab.p), ...)
For se.fit=FALSE
, predict.sscox
returns a vector of
the evaluated relative risk.
For se.fit=TRUE
, predict.sscox
returns a list
consisting of the following elements.
Vector of evaluated relative risk.
Vector of standard errors for log relative risk.
Object of class "sscox"
.
Data frame or model frame in which to predict.
Flag indicating if standard errors are required.
List of model terms to be included in the prediction.
Ignored.
Fitting functions sscox
and method
project.sscox
.