R/make_surv_response.R
make_surv_response.Rd
Construct a survival response
make_surv_response(data, follow_up, event)
A data frame with follow-up and event columns.
The name of the follow-up time column.
The name of the event indicator column.
An object of class "Surv".
"Surv"
data(lungcancer) surv_response <- make_surv_response( lungcancer, follow_up = "fup_obs", event = "death" )