Learn R Programming

vpc (version 1.1.0)

compute_kaplan: Compute Kaplan-Meier statistics

Description

Compute Kaplan-Meier statistics

Usage

compute_kaplan(dat, strat = "strat", reverse_prob = FALSE, ci = NULL)

Arguments

dat

data.frame with events

strat

vector of stratification variables

reverse_prob

reverse the probability (i.e. return `1-probability`)?

ci

confidence interval to calculate, numeric vector of length 2