cor_jags: Correlation matrix from a JAGS object

View source: R/summarize.R

cor_jagsR 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)

jagshelper documentation built on Oct. 22, 2024, 1:06 a.m.