Learn R Programming

equSA (version 1.2.1)

solcov: Calculate covariance matrix and precision matrix

Description

Calculate the adjusted covriance matrix and precision matrix given the network structure from high dimesional dataset.

Usage

solcov(data, struct, tol=10^-5)

Arguments

data

A \(n\)x\(p\) data matrix.

struct

A preacquired adjacency matrix

tol

Tolerant value, default is 10^-5

Value

A list of two elements:

COV

Adjusted covriance matrix

PRE

Precision matrix

%% ...

References

Friedman, J., Hastie, T., and Tibshirani, R. (2001). The elements of statistical learning (Vol. 1). Springer, Berlin: Springer series in statistics.

Examples

Run this code
# NOT RUN {
  
# }
# NOT RUN {
      
# }
# NOT RUN {
library(equSA)
data <- GauSim(100,200)
solcov(data$data,data$theta)
      
# }

Run the code above in your browser using DataLab