| add_km_hazard_ratios | R Documentation |
Add hazard ratios to strata labels
add_km_hazard_ratios(
stratalabs,
data,
response,
cov,
type,
plot.event = 1,
HR = FALSE,
HR_pval = FALSE,
HR.digits = 2,
HR.pval.digits = 3
)
stratalabs |
Original strata labels |
data |
Input data |
response |
Time and status variables |
cov |
Covariate |
type |
Model type ("KM" or "CIF") |
plot.event |
Event for CIF |
HR |
Whether to include HR |
HR_pval |
Whether to include HR p-value |
HR.digits |
Number of digits for HR |
HR.pval.digits |
Number of digits for HR p-value |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.