evsivar {voi} | R Documentation |
Calculate the expected value of sample information for an estimation problem
Description
Calculate the expected value of sample information for an estimation problem. This computes the expected reduction in variance in some quantity of interest from a study of a certain design that informs the parameters of interest.
Usage
evsivar(
outputs,
inputs,
study = NULL,
datagen_fn = NULL,
pars = NULL,
n = 100,
aux_pars = NULL,
method = NULL,
nsim = NULL,
verbose = TRUE,
...
)
Arguments
outputs |
a vector of values for the quantity of interest, sampled from the uncertainty distribution of this quantity that is induced by the uncertainty about the parameters. |
inputs |
Matrix or data frame of samples from the uncertainty
distribution of the input parameters of the decision model. The number
of columns should equal the number of parameters, and the columns should
be named. This should have the same number of rows as there are samples
in Users of heemod can create an object of this form, given an object
produced by |
study |
Name of one of the built-in study types supported by this
package for EVSI calculation. If this is supplied, then the columns of
Current built-in studies are
Either For the EVSI calculation methods where explicit Bayesian analyses of the
simulated data are performed, the prior parameters for these built-in studies
are supplied in the |
datagen_fn |
If the proposed study is not one of the built-in types supported, it can be specified in this argument as an R function to sample predicted data from the study. This function should have the following specification:
|
pars |
Character vector identifying which parameters are learned from the proposed study.
This is required for the moment matching and importance sampling methods,
and these should be columns of |
n |
Sample size of future study, or vector of alternative sample sizes.
This is understood by the built-in study designs. For studies specified
by the user with Currently this
shortcut is not supported if more than one quantity is required to
describe the sample size, for example, trials with unbalanced arms. In
that case, you will have to hard-code the required sample sizes into
For the nonparametric regression and importance sampling methods, the computation is simply repeated for each sample size supplied here. The moment matching method uses a regression model to estimate the dependency of the EVSI on the sample size, hence to enable EVSI to be calculated efficiently for any number of sample sizes (Heath et al. 2019). |
aux_pars |
A list of additional fixed arguments to supply to the
function to generate the data, whether that is a built-in study design or user-defined
function supplied in |
method |
See |
nsim |
Number of simulations from the model to use for calculating
EVPPI. The first |
verbose |
If |
... |
Other arguments understood by specific methods, e.g. |
Value
A data frame with a column pars
, indicating the parameter(s), and a column evsi
, giving the corresponding EVSI. If there are EVSI estimates for multiple sample sizes, the sample size is returned in the column n
.
References
Jackson, C., Presanis, A., Conti, S., & De Angelis, D. (2019). Value of information: Sensitivity analysis and research design in Bayesian evidence synthesis. Journal of the American Statistical Association, 114(528), 1436-1449.