Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

compute_kaplan

Compute Kaplan-Meier statistics


Description

Compute Kaplan-Meier statistics

Usage

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

Arguments

dat

data.frame with events

strat

vector of stratification variables

reverse_prob

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

rtte_conditional

'TRUE' (default) or 'FALSE'. Compute the probability for each event newly ('TRUE'), or calculate the absolute probability ('FALSE', i.e. the "probability of a 1st, 2nd, 3rd event etc" rather than the "probability of an event happening").

ci

confidence interval to calculate, numeric vector of length 2


vpc

Create Visual Predictive Checks

v1.2.2
MIT + file LICENSE
Authors
Ron Keizer <ronkeizer@gmail.com>
Initial release
2021-01-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.