Skip to contents

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.

Value

An object of class Landmarking.