Helper Function to get Kaplan-Meier Estimate
km_fun(resp, status, data, times)
resp
: (string
)
the response variable name.
status
: (string
)
only for "survival" resptype
, the status variable name in survival data.
data
: (data.frame
)
data to use.
times
: (numeric
)
time points to use.
Numeric vector with Kaplan-Meier estimates at times
.
Useful links