Skip to contents

Convenience wrapper for build_network(method = "ising"). Computes L1-regularized logistic regression network for binary data.

Usage

build_ising(data, ...)

Arguments

data

Data frame (sequences or per-observation frequencies) or a square symmetric matrix (correlation or covariance). A fitted net_clustering or net_mmm object is also accepted: the per-cluster networks are (re)built and a netobject_group is returned.

...

Additional arguments passed to build_network.

Value

A netobject (see build_network).

See also

Examples

if (requireNamespace("glmnet", quietly = TRUE)) {
  bin_data <- data.frame(matrix(rbinom(200, 1, 0.5), ncol = 5))
  net <- build_ising(bin_data)
}