Internal function that averages over posterior predictions
using either rowMeans() or rowBootMeans(), the latter
being useful to incorporate uncertainty from the
inputs being used to generate predictions.
.averagePosterior(posterior, resample = 0L, seed = FALSE)A vector of the averaged posterior.
A posterior matrix type object. It is assumed that different predictions to be averaged over are on different columns. Different posterior draws are on different rows.
An integer indicating the number of
bootstrap resamples of the posterior predictions to
use when calculating summaries. Defaults to 0L.
See the details section for more information as its implementation
is experimental and it may not operate as one would expect.
A seed for random number generation. Defaults to FALSE,
which means no seed is set.
Only used if resample is a positive, non-zero integer.