Skip to contents

Posterior Correlation Table

Usage

posterior_correlation_table(
  x,
  variables = NULL,
  regex = NULL,
  method = c("pearson", "spearman")
)

Arguments

x

A gp3bayes fit or posterior draws accepted by posterior_interval_table().

variables, regex

Posterior variable selectors.

method

Correlation method.

Value

A long data frame of unique posterior-draw correlations.

Examples

x <- cbind(a = rnorm(100), b = rnorm(100), c = rnorm(100))
posterior_correlation_table(x)
#>   variable_1 variable_2  correlation  method
#> 1          b          a -0.093611923 pearson
#> 2          c          a -0.043078073 pearson
#> 3          c          b -0.009627803 pearson