Learn R Programming

bonsaiforest (version 0.1.1)

km_fun: Helper Function to get Kaplan-Meier Estimate

Description

Helper Function to get Kaplan-Meier Estimate

Usage

km_fun(resp, status, data, times)

Value

Numeric vector with Kaplan-Meier estimates at times.

Arguments

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.