.averagePosterior | R Documentation |
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)
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. |
resample |
An integer indicating the number of
bootstrap resamples of the posterior predictions to
use when calculating summaries. Defaults to |
seed |
A seed for random number generation. Defaults to |
A vector of the averaged posterior.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.