MCpriorIntFun.nl {BMAmevt} | R Documentation |
Generic Monte-Carlo integration under the prior distribution in the PB and NL models.
Description
Wrappers for MCpriorIntFun
with argument
prior=prior.pb
or prior=prior.nl
Usage
MCpriorIntFun.nl(
Nsim = 200,
FUN = function(par, ...) {
par
},
store = TRUE,
Hpar = get("nl.Hpar"),
show.progress = floor(seq(1, Nsim, length.out = 20)),
Nsim.min = Nsim,
precision = 0,
...
)
MCpriorIntFun.pb(
Nsim = 200,
Hpar = get("pb.Hpar"),
dimData = 3,
FUN = function(par, ...) {
as.vector(par)
},
store = TRUE,
show.progress = floor(seq(1, Nsim, length.out = 20)),
Nsim.min = Nsim,
precision = 0,
...
)
Arguments
Nsim |
Maximum number of iterations |
FUN |
A function to be integrated. It may return a vector or an array. |
store |
Should the successive evaluations of |
Hpar |
Hyper-parameters for the PB prior (in |
show.progress |
same as in |
Nsim.min |
The minimum number of iterations to be performed. |
precision |
The desired relative precision |
... |
Additional arguments to be passed to |
dimData |
Only for the PB model: The dimension of model's sample space. The PB parameter space is of dimension |
Value
The list returned by function
MCpriorIntFun
.