
Fits the specified survival model at the landmark times and up to the horizon times specified by the user
Source:R/landmarking_survival.R
fit_survival-Landmarking-method.Rd
Fits the specified survival model at the landmark times and up to the horizon times specified by the user
Usage
# S4 method for class 'Landmarking'
fit_survival(x, formula, landmarks, windows, method, dynamic_covariates = c())
Arguments
- x
An object of class
Landmarking
.- formula
A formula to be used in survival sub-model fitting.
- landmarks
Numeric vector of landmark times.
- windows
Vector of prediction windows determining horizon times.
- method
Method for survival analysis, either "survfit" or "coxph".
- dynamic_covariates
Vector of time-varying covariates to be used in the survival model.