Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

extractPosteriorMeans

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

Stable Isotope Bayesian Ellipses in R

v2.1.6
GPL (>= 2)
Authors
Andrew Jackson and Andrew Parnell
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.