cor_jags {jagshelper}R Documentation

Correlation matrix from a JAGS object

Description

Computes a correlation matrix of all MCMC samples from an object returned by 'jagsUI', or an optional subset of parameter nodes.

Usage

cor_jags(x, p = NULL, exact = FALSE)

Arguments

x

Output object returned from jagsUI

p

Optional string to begin posterior names. If NULL is used, all parameters will be used

exact

Whether name must be an exact match (TRUE) or with initial sub-string matching only supplied characters (FALSE). Defaults to FALSE.

Value

A 2-dimensional correlation matrix (n X n, where n is the number of parameter nodes)

Author(s)

Matt Tyers

See Also

plotcor_jags

Examples

cor_jags(asdf_jags_out)

[Package jagshelper version 0.2.3 Index]