calc_evsi {dampack}R Documentation

Calculate Expected Value of Sample Information (EVSI)

Description

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. 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.

pop

scalar that corresponds to the total population

progress

TRUE or FALSE for whether or not function progress should be displayed in console.

Value

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.


[Package dampack version 1.0.1 Index]