| h_tbl_coxph_pairwise | R Documentation | 
Create a data.frame of pairwise stratified or unstratified Cox-PH analysis results.
h_tbl_coxph_pairwise(
  df,
  variables,
  ref_group_coxph = NULL,
  control_coxph_pw = control_coxph(),
  annot_coxph_ref_lbls = FALSE
)
| df | ( | 
| variables | (named  
 | 
| ref_group_coxph | ( | 
| control_coxph_pw | ( 
 | 
| annot_coxph_ref_lbls | ( | 
A data.frame containing statistics HR, XX% CI (XX taken from control_coxph_pw),
and p-value (log-rank).
library(dplyr)
adtte <- tern_ex_adtte %>%
  filter(PARAMCD == "OS") %>%
  mutate(is_event = CNSR == 0)
h_tbl_coxph_pairwise(
  df = adtte,
  variables = list(tte = "AVAL", is_event = "is_event", arm = "ARM"),
  control_coxph_pw = control_coxph(conf_level = 0.9)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.