Learn R Programming

cglasso (version 2.0.2)

is.cglasso2igraph: 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.

See Also

to_graph.

Examples

Run this code
# NOT RUN {
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(Z)
out.graph <- to_graph(out)
is.cglasso2igraph(out.graph )
# }

Run the code above in your browser using DataLab