View source: R/plots_efficacy.R
| cox_hr | R Documentation |
The reference level is the other arm, so a ratio below 1 favours the investigational arm. One row is returned, for binding into a forest.
cox_hr(data, time, event, arm, investigational = "Investigational",
subgroup = "Overall")
data |
Subject-level data. |
time, event, arm |
Column names. |
investigational |
Level of |
subgroup |
Label stored in the result. |
A one-row data frame with subgroup, estimate, limits and n.
onc <- simulate_oncology(n_per_arm = 20)
cox_hr(onc$adsl, "os_months", "os_event", "arm")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.