extractPosteriorMeans: Extract posterior means from call to 'siberMVN'

extractPosteriorMeansR Documentation

Extract posterior means from call to siberMVN

Description

This function extracts the posterior means from a call to siberMVN() which can then be used to calculate Bayesian layman metrics. This function is designed to create an array of posterior means that is more easily interrogated for plotting and summary statistics.

Usage

extractPosteriorMeans(siber, post)

Arguments

siber

a siber object as created by createSiberObject().

post

a list containing the posterior estimated parameters fitted to each group within every community. See siberMVN() which creates this object for details.

Value

A list of length n.communities with each entry representing a n.draws * 2 * n.groups array of rows equal to the number of posterior samples, 2 columns representing the two means of the multivariate data and n.groups the number of groups within the focal community.


SIBER documentation built on Oct. 19, 2023, 5:09 p.m.