Learn R Programming

MCMCglmm (version 2.36)

posterior.cor: Transforms posterior distribution of covariances into correlations

Description

Transforms posterior distribution of covariances into correlations

Usage

posterior.cor(x)

Value

posterior correlation matrices

Arguments

x

mcmc object of (co)variances stacked column-wise

Author

Jarrod Hadfield j.hadfield@ed.ac.uk

See Also

posterior.evals, posterior.inverse, posterior.ante

Examples

Run this code
v<-rIW(diag(2),3, n=1000)
hist(posterior.cor(mcmc(v))[,2])

Run the code above in your browser using DataLab