Calculate Expected Value of Sample Information (EVSI)
Usage
calc_evsi(
psa,
wtp,
params = NULL,
outcome = c("nhb", "nmb"),
k = -1,
n = 100,
n0 = 10,
n_by_param = FALSE,
pop = 1,
progress = TRUE
)Arguments
- psa
object of class psa, produced by
make_psa_obj- wtp
willingness-to-pay threshold
- params
A vector of parameter names to be analyzed in terms of EVPPI.
- outcome
either net monetary benefit (
"nmb") or net health benefit ("nhb")- k
basis dimension, if
type == "gam"- n
additional sample size
- n0
initial sample size
- n_by_param
if
TRUE, each parameter in the metamodel can have a unique initial and additional sample size.nandn0must be numerical vectors of equal length toparams, 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 ofnandn0is shared by each parameter in the model. Whenn_by_param = FALSE,n0must be a single numeric value, andnmust be a numerical vector of additional sample sizes for which EVSI is calculated from the metamodel.- pop
scalar that corresponds to the total population
- progress
TRUEorFALSEfor whether or not function progress should be displayed in console.
