cor_jags: 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)
Value
A 2-dimensional correlation matrix (n X n, where n is the number of parameter nodes)
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.