eval.eu {bdpopt}  R Documentation 
Simulate an estimate of the expected utility for a specific completion of the JAGS data, i.e., for a specific point in the decision space. This is a generic function for S3 objects.
eval.eu(model, utility.fun, data, n.iter, n.burn.in, n.adapt = 1000, inits = NULL, independent.SE = FALSE)
model 
Simulation model object of class 
utility.fun 
An R function defining the utility for the decision problem. It
must be possible to extract the argument names of the function
supplied with 
data 
A named list of R objects which, when combined with the named
objects in 
n.iter 
The number of iterations in the JAGS MCMC simulation. 
n.burn.in 
The number of burn iterations prior to the JAGS MCMC simulation. 
n.adapt 
The number of adaptation iterations prior to the burn in and JAGS MCMC simulation. 
inits 
The initial values for the chain passed on to the function

independent.SE 
If 
This function is called by eval.on.grid
, but also allows the
user to evaluate the expected utility for a specific combination of
values for the decision variables of the problem.
A list with components
mean 
Sample mean of the simulated utilities. 
SE 
Standard error of the sample mean. 
Sebastian Jobjörnsson jobjorns@chalmers.se