txseq: A single treatment sequence

Description Usage Arguments Value See Also Examples

View source: R/txseq.R

Description

Create a single treatment sequence for simulation modeling.

Usage

1
txseq(first, second, second_plus)

Arguments

first

The treatment to be used at first line. Must be a character of length 1.

second

A vector of length 2 where the first element is the second line treatment to be used if a patient develops a T790M mutation after first line treatment and the second element is the second line treatment to be used if the patient did not. One of the elements may be NA if the model begins at second line and T790M status is therefore known.

second_plus

A vector of length 2 where the first element is the post second line treatment to be used if a patient develops a T790M mutation after first line treatment and the second element is the post second line treatment to be used if the patient did not. One of the elements may be NA if the model begins at second line and T790M status is therefore known.

Value

An object of class "txseq", which is a list of treatments used at first line (first), second line (second), and post second line (second_plus).

See Also

txseq_list

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
txseq <- txseq(first = "erlotinib",
               second = c("osimertinib", "PBDC"),
               second_plus = c("PBDC + bevacizumab", "PBDC + bevacizumab"))
txseq$first
txseq$second
txseq$second_plus 

# T790M+ patient previously treated with erlotinib 
txseq <- txseq(first = "erlotinib",
               second = c("osimertinib", NA),
               second_plus = c("PBDC + bevacizumab", NA))
txseq$first
txseq$second
txseq$second_plus 

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