Construct a survival response

make_surv_response(data, follow_up, event)

Arguments

data

A data frame with follow-up and event columns.

follow_up

The name of the follow-up time column.

event

The name of the event indicator column.

Value

An object of class "Surv".

Examples

data(lungcancer)
surv_response <- make_surv_response(
  lungcancer,
  follow_up = "fup_obs",
  event = "death"
)