predict.tfCox {tfCox} | R Documentation |
tfCox
This function makes predictions from a specified covariate matrix for a fit of the class "tfCox".
## S3 method for class 'tfCox'
predict(object, newX, which.lambda=1, ...)
object |
an object of the class "tfCox" |
newX |
a n x p covariate matrix |
which.lambda |
the index for the model of interest to be plotted. |
... |
additional arguments to be passed. These are ignored in this function. |
Prediction for the new data point is implemented by constant or linear interpolation. 0th order trend filtering will have constant interpolation, and 1th or higher order trend filtering will have linear interpolation.
A n x p matrix containing the fitted theta values.
Jiacheng Wu