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

ellipseBackTransform

Back-transform a z-score siber ellipse to original location and scale.


Description

Back-transforms a bivariate siber ellipse fitted to z-scored data to the original location and scale. Not intended for direct call by users.

Usage

ellipseBackTransform(jags.output, siber, idx.community, idx.group)

Arguments

jags.output

a mcmc.list object of posterior samples created by rjags. In siber this is created typically by fitEllipse

siber

a siber object as created by createSiberObject.

idx.community

an integer specifying which community to back-transform.

idx.group

an integer specifying which group to back-transform.

Value

A 6 x n matrix representing the back-transformed posterior distributions of the bivariate normal distribution for a specified group within a specified community, where n is the number of posterior draws in the saved sample. The first four columns are the covariance matrix Sigma in vector format. This vector converts to the covariance matrix as matrix(v[1:4], nrow = 2, ncol = 2). The remaining two columns are the back-transformed means.


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.