ellipseBackTransform: Back-transform a z-score siber ellipse to original location...

ellipseBackTransformR Documentation

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::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 documentation built on Oct. 19, 2023, 5:09 p.m.