tests/testthat/_snaps/tbl_cuminc.md

tbl_cuminc() works

Code
  cuminc(Surv(ttdeath, death_cr) ~ 1, trial) %>% tbl_cuminc(outcomes = letters)
Condition
  Error in `tbl_cuminc()`:
  ! Error in `outcomes` argument specification.
  i Must be one or more of "death from cancer" and "death other causes".
Code
  cuminc(Surv(ttdeath, death_cr) ~ 1, trial) %>% tbl_cuminc(statistic = letters)
Condition
  Error in `tbl_cuminc()`:
  ! Argument `statistic` must be a string.
Code
  cuminc(Surv(ttdeath, death_cr) ~ 1, trial) %>% tbl_cuminc(label = letters)
Condition
  Error in `tbl_cuminc()`:
  ! Argument `label` must be a string.
Code
  cuminc(Surv(ttdeath, death_cr) ~ 1, trial) %>% tbl_cuminc() %>% add_p()
Condition
  Error:
  ! Cannot add a p-value without a stratifying variable.


Try the tidycmprsk package in your browser

Any scripts or data that you put into this service are public.

tidycmprsk documentation built on Sept. 11, 2024, 7:24 p.m.