posteriorMean {BMAmevt} | R Documentation |
Computes an approximation of the posterior mean of a parameter functional, based on a posterior parameters sample.
posteriorMean(
post.sample,
FUN = function(par, ...) {
par
},
from = NULL,
to = NULL,
thin = 50,
displ = TRUE,
...
)
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 |
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.
A list made of
A matrix : each column is the result of FUN
applied to a parameter from the posterior sample.
The posterior mean
The posterior standard deviation