cor_2_pcor {BBcor}R Documentation

Correlation to Partial Correlation

Description

Convert correlations into the corresponding partial correlations.

Usage

cor_2_pcor(x, ...)

Arguments

x

An object of class bbcor

...

Currently ignored

  • pcor_mean: A matrix including the posterior mean.

  • samps: An array of dimensions p by b by iter that includes the sampled partial correlation matrices.

Examples

Y <- mtcars[,1:3]

fit <- bbcor(Y, method = "spearman")

cor_2_pcor(fit)


[Package BBcor version 1.0.1 Index]