Description Usage Arguments Value Examples
Define the structure of the oncology model.
1 2 | model_structure(txseqs, n_states = c("four", "three"),
dist = c("weibull", "gompertz", "fracpoly1", "fracpoly2"))
|
txseqs |
A |
n_states |
Number of modeled health states. |
dist |
Parametric distribution used to model health state transitions.
Options are |
A list containing the elements txseqs
, n_states
and
dist
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | txseq1 <- txseq(first = "erlotinib",
second = c("osimertinib", "PBDC"),
second_plus = c("PBDC + bevacizumab", "PBDC + bevacizumab"))
txseq2 <- txseq(first = "gefitinib",
second = c("osimertinib", "PBDC"),
second_plus = c("PBDC + bevacizumab", "PBDC + bevacizumab"))
txseqs <- txseq_list(seq1 = txseq1, seq2 = txseq2)
# Model with 4 health states
struct <- model_structure(txseqs)
names(struct)
class(struct$txseqs)
struct$n_states
struct$dist
# Model with 3 health states
struct <- model_structure(txseqs, n_states = "three", dist = "weibull")
struct$n_states
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.