Convert inverse covariance to partial correlation for several inverse covariance matrices collected in an array.

Description

Convert inverse covariance to partial correlation for several inverse covariance matrices collected in an array.

Usage

1
invcov2parcor_array(invcov.array)

Arguments

invcov.array

Array of inverse covariance matrices, of dimension numNodes by numNodes by numComps.

Value

Array of partial correlation matrices of dimension numNodes by numNodes by numComps

Examples

1
2
invcov.array = sapply(1:5, function(x) generate_inv_cov(p=25), simplify='array')
p.corr = invcov2parcor_array(invcov.array)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.