Description Usage Arguments Value Examples
Define a partitioned survival model with progression-free survival and overall survival.
1 2 3 4 | define_part_surv(pfs, os, state_names, terminal_state = FALSE,
cycle_length = 1)
define_part_surv_(pfs, os, state_names, cycle_length = 1)
|
pfs, os |
Either results from
|
state_names |
named character vector, length 3 or 4.
State names for progression-free state, progression,
(optionally terminal) and death respectively. Elements
should be named |
terminal_state |
Should a terminal state be included? Only used when state names are not provided. |
cycle_length |
The value of a Markov cycle in absolute time units. |
A part_surv
object.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | dist_pfs <- heemod::define_survival("exp", rate = 1)
dist_os <- heemod::define_survival("exp", rate = .5)
define_part_surv(
pfs = dist_pfs,
os = dist_os,
state_names = c(
progression_free = "A",
progression = "B",
terminal = "C",
death = "D"
)
)
# identical to:
define_part_surv(
pfs = dist_pfs,
os = dist_os,
terminal_state = TRUE
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.