calc_evpi is used to compute the expected value of perfect information
(EVPI) from a probabilistic sensitivity analysis (PSA) dataset.
Arguments
- psa
psa object from
make_psa_obj- wtp
numeric vector with willingness-to-pay (WTP) thresholds
- pop
scalar that corresponds to the total population
Details
evpi calculates the value of eliminating all the uncertainty of a
cost-effectiveness analysis at each WTP threshold.
Examples
# build a psa object from the data provided with the package
data("cancer_psa_data")
psa_cancer <- make_psa_obj(cost = cancer_psa_data$cost,
effectiveness = cancer_psa_data$effectiveness,
parameters = cancer_psa_data$parameters,
strategies = cancer_psa_data$strategies)
# define wtp threshold vector (can also use a single wtp)
wtp <- seq(1e4, 1e5, by = 1e4)
evpi <- calc_evpi(psa_cancer, wtp)
plot(evpi) # see ?plot.evpi for options
# can use plot options (# see ?plot.evpi for details)
plot(evpi, effect_units = "QALE")
# or can use ggplot layers
plot(evpi) + ggtitle("Expected Value of Perfect Information")
