Learn R Programming

robCompositions (version 2.6.0)

print.cellNetCoDa: Print method for cellwise-robust compositional networks

Description

Prints a concise summary of a cellNetCoDa object: the back end used, the number of nodes (parts) and selected edges, the graph density, the StARS-selected penalty, and the share of flagged cells.

Usage

# S3 method for cellNetCoDa
print(x, ...)

Value

Invisibly returns x.

Arguments

x

object of class "cellNetCoDa" as returned by cellNetCoDa

...

additional arguments (currently ignored)

Author

Matthias Templ

See Also

cellNetCoDa, summary.cellNetCoDa, plot.cellNetCoDa

Examples

Run this code
# \donttest{
if (requireNamespace("glmnet", quietly = TRUE)) {
  data(expenditures)
  set.seed(1)
  net <- cellNetCoDa(expenditures, method = "mb",
                     lambda_grid = c(0.4, 0.2, 0.1, 0.05), B = 10, k = 2)
  net
}
# }

Run the code above in your browser using DataLab