evppi_mc {voi} | R Documentation |
Traditional two-level Monte Carlo estimator of EVPPI.
Description
Traditional two-level Monte Carlo estimator of the expected value of partial
perfect information from a decision-analytic model. Only useful in the
simplest of examples. For realistically complex examples, the methods
implemented in the evppi
function, based on regression,
will usually be much more computationally efficient.
Usage
evppi_mc(
model_fn,
par_fn,
pars,
nouter,
ninner,
k = NULL,
mfargs = NULL,
verbose = FALSE
)
Arguments
model_fn |
A function to evaluate a decision-analytic model at a given set of parameters. This should have one argument per parameter, and return either: (net benefit format) a vector giving the net benefit for each decision option, or (cost-effectiveness analysis format) a matrix or data frame with two rows,
and one column for each decision option. If the rows have names
Otherwise, the first row is assumed to be the effects, and the second the costs. |
par_fn |
A function to generate a random sample of values for the
parameters of If any required arguments to If any required arguments are not found in the results of The first argument of The parameters may be correlated. If we wish to compute the EVPPI for a
parameter which is correlated with a different parameter q, then |
pars |
A character vector giving the parameters of interest, for which
the EVPPI is required. This should correspond to an explicit argument to
The parameters of interest are assumed to have uncertainty distributions that are independent of those of the other parameters. |
nouter |
Number of outer samples |
ninner |
Number of inner samples |
k |
Vector of willingness-to-pay values. Only used if
|
mfargs |
Named list of additional arguments to supply to
|
verbose |
Set to |
Details
See the package overview / Get Started vignette for an example of using this function.
Value
A data frame with a column pars
, indicating the parameter(s),
and a column evppi
, giving the corresponding EVPPI.
If outputs
is of "cost-effectiveness analysis" form, so that there is
one EVPPI per willingness-to-pay value, then a column k
identifies the
willingness-to-pay.