
Make predictions for time-varying covariates at specified landmark times
Source:R/longitudinal.R
predict_longitudinal.Rd
Make predictions for time-varying covariates at specified landmark times
Arguments
- x
An object of class
LandmarkAnalysis
.- landmarks
A numeric vector of landmark times.
- method
Longitudinal data analysis method used to make predictions
- dynamic_covariates
Vector of time-varying covariates to be modelled as the outcome of a longitudinal model.
- validation_fold
If positive, cross-validation fold where model is fitted. If 0 (default), model fitting is performed in the complete dataset.
- ...
Additional arguments passed to the prediction function (e.g. number of classes/clusters for lcmm).
Value
An object of class LandmarkAnalysis
.