posteriorMean {BMAmevt} | R Documentation |
Posterior predictive density on the simplex, for three-dimensional extreme value models.
Description
Computes an approximation of the posterior mean of a parameter functional, based on a posterior parameters sample.
Usage
posteriorMean(
post.sample,
FUN = function(par, ...) {
par
},
from = NULL,
to = NULL,
thin = 50,
displ = TRUE,
...
)
Arguments
post.sample |
A posterior sample as returned by |
FUN |
a parameter functional returning a vector. |
from |
Integer or |
to |
Integer or |
thin |
Thinning interval. |
displ |
logical. Should a plot be produced ? |
... |
Additional parameters to be passed to |
Details
Only a sub-sample is used: one out of thin
parameters is used
(thinning). Further, only the parameters produced between time
from
and time to
(included) are kept.
Value
A list made of
- values
A matrix : each column is the result of
FUN
applied to a parameter from the posterior sample.- est.mean
The posterior mean
- est.sd
The posterior standard deviation