Calculate Expected Value of Sample Information (EVSI)
calc_evsi(
psa,
wtp,
params = NULL,
outcome = c("nhb", "nmb"),
k = -1,
n = 100,
n0 = 10,
n_by_param = FALSE,
pop = 1,
progress = TRUE
)
object of class psa, produced by make_psa_obj
willingness-to-pay threshold
A vector of parameter names to be analyzed in terms of EVPPI.
either net monetary benefit ("nmb"
)
or net health benefit ("nhb"
)
basis dimension, if type == "gam"
additional sample size
initial sample size
if TRUE
, each parameter in the metamodel can have a unique
initial and additional sample size. n
and n0
must be numerical
vectors of equal length to params
, with each value corresponding to the
initial and additional sample sizes for each parameter in the metamodel. By default,
n_by_param = FALSE
, and each value of n
and n0
is shared by
each parameter in the model. When n_by_param = FALSE
, n0
must be a single
numeric value, and n
must be a numerical vector of additional sample sizes for
which EVSI is calculated from the metamodel.
scalar that corresponds to the total population
TRUE
or FALSE
for whether or not function progress
should be displayed in console.
A list containing 1) a data.frame with WTP thresholds, new prospective sample sizes
(if n_by_param == FALSE
), and corresponding EVSIs
for the selected parameters and 2) a list of metamodels used to estimate EVSI for each
strategy at each willingness to pay threshold.