glasso: Graphical Lasso (GLASSO)

Description Usage Arguments Examples

View source: R/algorithms.R

Description

This function allows you to learn an undirected graph from a dataset using the GLASSO algorithm.

Usage

1
2
3
4
5
6
7
glasso(
  df,
  rho = 0.1,
  m = NULL,
  to = c("igraph", "adjacency", "edges", "graph", "bnlearn"),
  seed = sample(1:10^6, 1)
)

Arguments

df

Dataset.

rho

Non-negative regularization parameter for GLASSO.

m

Size of training set (optional). Default: nrow(df)/2

to

Output format ('adjacency', 'edges', 'graph', 'igraph', or 'bnlearn') (optional).

seed

Seed used for random selection. Default: NULL

Examples

1
g <- glasso(df, rho=0.1)

rlebron-bioinfo/gnlearn documentation built on July 25, 2020, 12:38 p.m.