evpi.remote.Rd
Calculate the expected value of perfect information from a decision model
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.
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)#>#> [,1] #> [1,] 0.476