kmstepfun: KM estimator

Description Usage Arguments Value

View source: R/kmstepfun.R

Description

Wrapper for [stepfun()] to creates a function to output vector of KM estimates for a given survival-censor pair

Usage

1
kmstepfun(day, time, event, estimate = c("surv", "lower", "upper"))

Arguments

day

Integer. Number of days after time zero

time

Integer. Survival time

event

0/1 or 'TRUE'/'FALSE'. Censor / Survival status indicator

estimate

"surv" (point estimate), "lower" (lower conf limit), "upper" (upper conf limit)

Value

A function of class "stepfun"


wjchulme/survhelper documentation built on May 23, 2019, 2:42 p.m.