Description Usage Arguments Value Author(s) See Also
Evaluate the expected utility on a grid using MCMC samples from JAGS. The grid is a subset of the space for the decision variables.
1 2 | eval.on.grid(model, utility.fun, grid.spec.list,
n.iter, n.burn.in, n.adapt = 1000, independent.SE = FALSE, parallel = 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 |
grid.spec.list |
A nonempty list of array grid specifications. An array grid
specification is a list of two componenents. The first component is a
dimension vector, giving the dimensions of the array. The second
component is a list of vectors of length equal to the product of the
dimension vector. Each such vector has the form |
n.iter |
The number of iterations in the JAGS MCMC simulation for each grid point. |
n.burn.in |
The number of burn in iterations prior to the JAGS MCMC simulation for each grid point. |
n.adapt |
The number of adaptation iterations prior to the burn in phase and subsequent JAGS MCMC simulation for each grid point. |
independent.SE |
If |
parallel |
Logical equal to |
A new simulation model object constructed from the object given as the
first argument and the simulation results. The updated components in
the new object are model$sim.points
, model$sim.means
,
model$sim.SEs
and model$grid.spec.list
. See
sim.model
for a description of these components.
Sebastian Jobj<f6>rnsson jobjorns@chalmers.se
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.