Learn R Programming

Rnets (version 1.2.1)

Estimate_pCorrs: Estimation of partial correlation matrix from precision matrix

Description

An inverse precision matrix (Theta), either penalized or unpenalized, of a dataset can be used to estimate the partial correlation matrix (Omega), which describes the correlations between members of the dataset, adjusted for correlation with all other members of the set. Lemma 1 from Peng, et al, is used to here to estimate partial correlations (w): w_ij = -t_ij*(t_ii*t_jj)^-0.5, where t_ij denotes the element at the ith row and jth column in Theta, when i != j. The main diagnonal of Omega (w_ii) is typically 1, but here is set to 0 to remove loops from the resultant. Note that w_ij = 0 wherever t_ij is 0.

Usage

Estimate_pCorrs(theta)

Arguments

theta

A precision matrix, typically produced by the graphical LASSO procedure.

Value

A partial correlation matrix produced by transforming theta.

Examples

Run this code
# NOT RUN {
data('mtcars')
Sigma <- cor(mtcars[,c(1, 3:7)])
Theta <- Sigma^-1
Omega <- Estimate_pCorrs(Theta)
# }

Run the code above in your browser using DataLab