km_fun: Helper Function to get Kaplan-Meier Estimate

View source: R/ahr_estimation.R

km_funR Documentation

Helper Function to get Kaplan-Meier Estimate

Description

Helper Function to get Kaplan-Meier Estimate

Usage

km_fun(resp, status, data, 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.

Value

Numeric vector with Kaplan-Meier estimates at times.


bonsaiforest documentation built on Sept. 30, 2024, 9:46 a.m.