Description Usage Arguments Value Examples
Calculate the expected value of perfect information from a decision model
1 | evpi.remote(outputs, nsim = NULL)
|
outputs |
This could take one of two forms "net benefit" form: a matrix or data frame of samples from the uncertainty distribution of the expected net benefit. The number of rows should equal the number of samples, and the number of columns should equal the number of decision options. "cost-effectiveness analysis" form: a list with the following named components:
Objects of class If |
nsim |
Number of simulations from the model to use for calculating
EVPPI. The first |
The expected value of perfect information, either as a single value, or a data frame indicating the value for each willingness-to-pay.
1 2 3 4 5 6 7 8 9 10 11 | set.seed(1)
nsam <- 10000
inputs <- data.frame(
p1 = rnorm(nsam, 1, 1),
p2 = rnorm(nsam, 0, 2)
)
outputs_nb <- data.frame(
t1 = 0,
t2 = inputs$p1 - inputs$p2
)
evpi.remote(outputs = outputs_nb)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.