View source: R/one_minus_kaplan_meier.R
one_minus_kaplan_meier | R Documentation |
This function calculates the one minus Kaplan-Meier estimator of
adverse events (while censoring all competing events) observed in [0, tau]
.
Please also refer to formula (4) in \insertCitestegherr_meta_analytic_2021;textualsavvyr.
one_minus_kaplan_meier(data, tau)
data |
(
|
tau |
( |
(vector
)
with the following entries:
ae_prob
: Estimated probability of AE.
ae_prob_var
: Variance of that estimate.
stegherr_meta_analytic_2021savvyr
set.seed(123)
dat <- generate_data(n = 5, cens = c(2, 5), haz_ae = 2, haz_death = 3, haz_soft = 5)
one_minus_kaplan_meier(dat, tau = 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.