Skip to contents

Make predictions for time-varying covariates at specified landmark times

Usage

# S4 method for class 'Landmarking'
predict_longitudinal(x, landmarks, method, dynamic_covariates, ...)

Arguments

x

An object of class Landmarking.

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.

...

Additional arguments passed to the prediction function (e.g. number of classes/clusters for lcmm).

Value

An object of class Landmarking.