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

Description Usage Arguments Value

View source: R/ellipseBackTransform.R

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

1
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 specifyging 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 May 30, 2017, 2:03 a.m.