predict.sscox | R Documentation |
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 class 'sscox'
predict(object, newdata, se.fit=FALSE,
include=c(object$terms$labels,object$lab.p), ...)
object |
Object of class |
newdata |
Data frame or model frame in which to predict. |
se.fit |
Flag indicating if standard errors are required. |
include |
List of model terms to be included in the prediction. |
... |
Ignored. |
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.
fit |
Vector of evaluated relative risk. |
se.fit |
Vector of standard errors for log relative risk. |
For mixed-effect models through sscox
, the Z matrix is
set to 0 if not supplied. To supply the Z matrix, add an element
random=I(...)
in newdata
, where the as-is function
I(...)
preserves the integrity of the Z matrix in data
frame.
Fitting functions sscox
and method
project.sscox
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.