create_states: Create health states tables

Description Usage Arguments Value Examples

View source: R/model-setup.R

Description

Create a data table describing the health states for the model.

Usage

1
create_states(object)

Arguments

object

A model_structure object.

Value

A data table with the following columns:

state_id

The state ID number.

state_name

The state name,

state_name_long

A long-form state name.

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) 

struct1 <- model_structure(txseqs, n_states = "four")
create_states(struct1)

struct2 <- model_structure(txseqs, n_states = "three")
create_states(struct2)

txseqs <- txseq_list(seq1 = txseq1, seq2 = txseq2, 
                     start_line = "second", mutation = "negative")
struct3 <- model_structure(txseqs, n_states = "three")
create_states(struct3)

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