Description Usage Arguments Value
add_weights
Calculate weights for a weighted log-rank test and add them to the risk table.
1 2 | add_weights(risk_table, method = "fixed_c", delay = 6, rho = 0,
gamma = 0, plot_weights = FALSE)
|
risk_table |
A risk table produced by the function |
method |
The type of weighted log-rank test.
|
delay |
Parameter used by the |
rho |
First parameter for the |
gamma |
Second parameter for the |
A risk table consisting of the original risk_table
with 3 additional columns:
c
The scores in the score test corresponding to events (uncensored observations).
w
The weights for the weighted log-rank test.
C
The scores in the score test corresponding to censored observations.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.