Functions

fit_LOCF_landmark()

Fit a landmark model using a last observation carried forward (LOCF) method for the longitudinal data

fit_LME_landmark()

Fit a landmarking model using a linear mixed effects (LME) model for the longitudinal submodel

add_cv_number()

Assign a k-fold cross-validation number

return_ids_with_LOCF()

Select individuals in a dataset with a last observation carried forward (LOCF) at a landmark time

find_LOCF_risk_set()

Find the risk set for a landmark model (LOCF)

find_LME_risk_set()

Find the risk set for a landmark model (LME)

fit_LOCF_longitudinal()

Find the last observation carried forward (LOCF) values for covariates in a dataset

fit_LME_longitudinal()

Fit a landmarking model using a linear mixed effects (LME) model for the longitudinal data

fit_survival_model()

Fit a survival sub-model as part of a landmarking analysis

get_model_assessment()

Compute C-index and Brier score

predict(<landmark>)

Predict the risk of an event for a new individual using the landmark model

plot(<landmark>)

Create a calibration plot

mixoutsamp()

Calculate point estimates from a linear mixed effects (LME) model for new data

Data

data_repeat_outcomes

Simulated repeat measurement and time-to-event data