Aggregate posterior draws by averaging

average_posterior(posterior_samples, weights = NULL)

Arguments

posterior_samples

A matrix of posterior samples, with MCMC draws down the rows

weights

Optional weights, for computing a weighted subgroup average

Details

Aggregate posterior draws by averaging, re (weighted) average