data(Schizo_PANSS_BPRS)
dat <- prepare_longitudinal_surrogate_data(
data = Schizo_PANSS_BPRS,
id = "Id",
treatment = "Treat",
time = "Time_cont",
endpoint = "Endpoint",
outcome = "Response_log",
surrogate_label = "BPRS",
true_label = "PANSS",
treatment_levels = c(0, 1))
Run the code above in your browser using DataLab