summary.net_nct: Summary Method for net_nct

View source: R/nct.R

summary.net_nctR Documentation

Summary Method for net_nct

Description

Returns a tidy data frame with one row per edge test. The global M (strength) and S (structure) statistics are attached as attributes.

Usage

## S3 method for class 'net_nct'
summary(object, ...)

Arguments

object

A net_nct object.

...

Ignored.

Value

A data frame with columns from, to, diff_observed, p_value, significant. Attributes m_stat and s_stat each hold a one-row data frame with observed and p_value.

Examples

## Not run: 
set.seed(1)
x1 <- matrix(rnorm(200 * 5), 200, 5)
x2 <- matrix(rnorm(200 * 5), 200, 5)
colnames(x1) <- colnames(x2) <- paste0("V", 1:5)
res <- nct(x1, x2, iter = 100)
res$M$p_value
res$S$p_value

## End(Not run)

Nestimate documentation built on July 11, 2026, 1:09 a.m.