Description Usage Arguments Value Examples
Create a model for health state utility given values of utility by health state, treatment, and time sampled from a probability distribution.
1 2 3 | create_utilmod(n = 100, struct, patients, ae_probs,
params_utility = iviNSCLC::params_utility, ae_duration = c("month",
"progression"))
|
n |
The number of random observations of the parameters to draw. |
struct |
A |
patients |
A data table returned from |
ae_probs |
An "ae_probs" object as returned by |
params_utility |
Parameter estimates for health state utilities and
adverse event disutilities in the same format as |
ae_duration |
Duration of time over with disutility from adverse events
should accrue. If |
An object of class "StateVals" from the hesim package.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | # Treatment sequences
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)
# Patient population
pats <- create_patients(n = 2)
## Model structure
struct <- model_structure(txseqs, dist = "weibull")
## Utility model
n_samples <- 2
ae_probs <- ae_probs(n = n_samples, struct = struct)
utilmod <- create_utilmod(n = n_samples, struct = struct, patients = pats,
ae_probs = ae_probs)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.