is.cglasso2igraph {cglasso} | R Documentation |
Is an Object of Class ‘cglasso2igraph’?
Description
is.cglasso2igraph
tests if its argument is an object of class ‘cglasso2igraph’.
Usage
is.cglasso2igraph(x)
Arguments
x |
object to be tested. |
Author(s)
Luigi Augugliaro (luigi.augugliaro@unipa.it)
See Also
Examples
set.seed(123)
n <- 100L
p <- 3L
rho <- 0.3
Sigma <- outer(1L:p, 1L:p, function(i, j) rho^abs(i - j))
Z <- rcggm(n = n, Sigma = Sigma, probl = 0.05, probr = 0.05)
out <- cglasso(. ~ ., data = Z)
out.graph <- to_graph(out)
is.cglasso2igraph(out.graph )
[Package cglasso version 2.0.7 Index]