View source: R/rags2ridgesFused.R
GGMnetworkStats.fused | R Documentation |
Compute various network statistics from a list
sparse precision
matrices. The sparse precision matrix is taken to represent the conditional
independence graph of a Gaussian graphical model. This function is a simple
wrapper for GGMnetworkStats
.
GGMnetworkStats.fused(Plist)
Plist |
A |
For details on the columns see GGMnetworkStats
.
A data.frame
of the various network statistics for each
class. The names of Plist
is prefixed to column-names.
Anders E. Bilgrau, Carel F.W. Peeters <carel.peeters@wur.nl>, Wessel N. van Wieringen
GGMnetworkStats
## Create some "high-dimensional" data
set.seed(1)
p <- 10
ns <- c(5, 6)
Slist <- createS(ns, p)
## Obtain sparsified partial correlation matrix
Plist <- ridgeP.fused(Slist, ns, lambda = c(5.2, 1.3), verbose = FALSE)
PCsparse <- sparsify.fused(Plist , threshold = "absValue", absValueCut = 0.2)
SPlist <- lapply(PCsparse, "[[", "sparsePrecision") # Get sparse precisions
## Calculate GGM network statistics in each class
## Not run: GGMnetworkStats.fused(SPlist)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.