Description Usage Arguments Details Value See Also
View source: R/value_of_hope.R
Compute the quality-adjusted life-years (QALYs) that a patient would need to obtain to be indifferent between treatment sequences relative to a reference treatment sequence (i.e., compute the "certainty equivalent"), give differences in the distribution of QALYs.
1 | value_of_hope(econmod, comparator, crra = 0.39, dr = 0.03)
|
econmod |
An economic model of class |
comparator |
The |
crra |
Constant relative risk aversion parameter. |
dr |
Discount rate. |
The value of hope is the difference between the certainty equivalent and differences in mean QALYs between a given treatment strategy and a comparator. That is, if α is the certainty equivalent, then the value of hope for treatment strategy 2 relative to treatment strategy 1 is
α - (E[qalys_2] - E[qalys_1])
.
A data.table
with columns:
The treatment strategy ID.
Equal to 1 if the treatment strategy is the comparator and 0 otherwise.
Mean QALYs.
Incremental mean QALYs; that is, mean QALYs relative to the comparator.
The certainty equivalent.
The 'value of hope'. See 'Details'.
See the example in the tutorial.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.