| icer {hesim} | R Documentation |
Incremental cost-effectiveness ratio
Description
Generate a tidy table of incremental cost-effectiveness ratios (ICERs) given output from
cea_pw() with icer() and format for pretty printing with format.icer().
Usage
icer(x, prob = 0.95, k = 50000, labels = NULL, ...)
## S3 method for class 'icer'
format(
x,
digits_qalys = 2,
digits_costs = 0,
pivot_from = "strategy",
drop_grp = TRUE,
pretty_names = TRUE,
...
)
Arguments
x |
An object of class |
prob |
A numeric scalar in the interval |
k |
Willingness to pay per quality-adjusted life-year. |
labels |
A list of named vectors containing the values and labels of
variables. The elements of each vector are the values of a variable and the
names are the labels. The names of the list are the names of the variables.
See the output returned by |
... |
Further arguments passed to and from methods. Currently unused. |
digits_qalys |
Number of digits to use to report QALYs. |
digits_costs |
Number of digits to use to report costs. |
pivot_from |
Character vector denoting a column or columns used to
"widen" the data. Should either be |
drop_grp |
If |
pretty_names |
Logical. If |
Details
Note that icer() will report negative ICERs; however, format() will
correctly note whether a treatment strategy is dominated by or dominates the
reference treatment.
Value
icer() returns an object of class icer that is a tidy
data.table with the following columns:
- strategy
The treatment strategy.
- grp
The subgroup.
- outcome
The outcome metric.
- estimate
The point estimate computed as the average across the PSA samples.
- lower
The lower limit of the confidence interval.
- upper
The upper limit of the confidence interval.
format.icer() formats the table according to the arguments passed.