model_structure: Model structure

Description Usage Arguments Value Examples

View source: R/model-setup.R

Description

Define the structure of the oncology model.

Usage

1
2
model_structure(txseqs, n_states = c("four", "three"),
  dist = c("weibull", "gompertz", "fracpoly1", "fracpoly2"))

Arguments

txseqs

A txseq_list object.

n_states

Number of modeled health states.

dist

Parametric distribution used to model health state transitions. Options are "weibull" (Weibull), "gompertz" (gompertz), "fracpoly1"(2nd order fractional polynomial with p_1 = 0 and p_2 = 0), and "fracpoly2"(2nd order fractional polynomial with p_1 = 0 and p_2 = 1).

Value

A list containing the elements txseqs, n_states and dist.

Examples

 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

InnovationValueInitiative/IVI-NSCLC documentation built on July 25, 2019, 8:03 p.m.