Description Usage Arguments Value Note Examples
Efficiently draws samples from the posterior distribution of various correlation coefficients
1 | bbcor(x, method = "pearson", iter = 5000, cores = 2)
|
x |
A matrix of dimensions n by p |
method |
Character string. Which correlation coefficient should be computed. One of "pearson" (default), "kendall", "spearman", "polychoric", "gaussian_rank", or "blomqvist" (i.e., median correlation). |
iter |
Numeric. How many posterior samples (defaults to |
cores |
Numeric. How many cores for parallel computing (defaults to |
cor_mean
: A matrix including the posterior mean
samps
: An array of dimensions p
by b
by iter
that includes the
sampled correlation matrices.
NAs are removed.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.