View source: R/ahr_estimation.R
ahr_from_km | R Documentation |
Average Hazard Estimation based on Kaplan-Meier Estimates
ahr_from_km(resp, trt, data, status, t_quantile = 0.99)
resp |
( |
trt |
( |
data |
( |
status |
( |
t_quantile |
( |
Estimates can be unstable due to the variability of the Kaplan-Meier estimates
in the tails. The t_quantile
argument can address this, e.g. by setting it to
0.95, the 5% highest times will be discarded. By default, the 1% highest times
are discarded.
The estimated average hazard ratio of the treatment (second level of trt
)
versus the control (first level of trt
).
ahr_from_km("tt_pfs", "arm", example_data, "ev_pfs")
ahr_from_km("tt_pfs", "arm", example_data, "ev_pfs", t_quantile = 0.95)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.