| km_ratio_greenwood | R Documentation |
Wald CI on the log scale, with se(log S) = se(S) / S for each arm and
se(S) from Greenwood's formula.
km_ratio_greenwood(time, status, A, t0, alpha = 0.05, weights = NULL)
time |
Event/censoring time. |
status |
Event indicator (1 = event, 0 = censored). |
A |
Treatment indicator (0/1; numeric, logical, character, or factor). |
t0 |
Time at which to evaluate the survival ratio. |
alpha |
Significance level for the confidence interval (default 0.05). |
weights |
Optional case weights (e.g. SBW), passed to
|
A list with S0, S1, ratio (= S1(t0)/S0(t0)), log_ratio,
se_log, ci_ratio, and ci_log.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.