Define the structure of the oncology model.
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
.
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)#> [1] "txseqs" "n_states" "dist"#> [1] "txseq_list"struct$n_states#> [1] "four"struct$dist#> [1] "weibull"# Model with 3 health states struct <- model_structure(txseqs, n_states = "three", dist = "weibull") struct$n_states#> [1] "three"