Learn R Programming

nethet (version 1.4.2)

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

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

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

Run the code above in your browser using DataLab