Learn R Programming

BBcor (version 1.0.3)

cor_2_pcor: 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

Run this code
# NOT RUN {
Y <- mtcars[,1:3]

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

cor_2_pcor(fit)

# }

Run the code above in your browser using DataLab