# NOT RUN {
library(Landmarking)
data(data_repeat_outcomes)
data_model_landmark_LOCF <-
fit_LOCF_landmark(
data_long = data_repeat_outcomes,
x_L = c(60, 61),
x_hor = c(65, 66),
covariates =
c("ethnicity", "smoking", "diabetes", "sbp_stnd", "tchdl_stnd"),
covariates_time =
c(rep("response_time_sbp_stnd", 4), "response_time_tchdl_stnd"),
k = 10,
individual_id = "id",
event_time = "event_time",
event_status = "event_status",
survival_submodel = "cause_specific"
)
get_model_assessment(data = data_model_landmark_LOCF[["60"]]$data,
individual_id = "id",
event_prediction = "event_prediction",
event_status = "event_status",
event_time = "event_time",
x_hor = 65,
b = 10)
# }
Run the code above in your browser using DataLab