
Make predictions for time-to-event outcomes at specified horizon times
Source:R/landmarking_survival.R
predict_survival-Landmarking-method.Rd
Make predictions for time-to-event outcomes at specified horizon times
Usage
# S4 method for class 'Landmarking'
predict_survival(x, landmarks, windows, method, ...)
Arguments
- x
An object of class
Landmarking
.- landmarks
A numeric vector of landmark times.
- windows
Vector of prediction windows determining horizon times.
- method
R function that is used to make predictions
- ...
Additional arguments passed to the prediction function (e.g. number of classes/clusters for lcmm).
Value
An object of class Landmarking
.