get_edge_weights_summary: Edge Weights Summary

View source: R/get_edge_weights_summary.R

get_edge_weights_summaryR Documentation

Edge Weights Summary

Description

Computes descriptive statistics for network edge weights.

Usage

get_edge_weights_summary(network, abs_weights = TRUE, round_digits = 2)

Arguments

network

Network object with a graph element (e.g., from bootnet::estimateNetwork()).

abs_weights

Logical; use absolute edge weights.

round_digits

Number of decimal places for rounding.

Value

A one-row data frame with the number of non-zero edges (N) and the mean, standard deviation, minimum and maximum of their weights.

Examples

set.seed(123)
n <- 300
f1 <- rnorm(n)
f2 <- 0.3 * f1 + rnorm(n)
items <- data.frame(
  sapply(1:4, function(i) 0.7 * f1 + rnorm(n, 0, 0.7)),
  sapply(1:4, function(i) 0.7 * f2 + rnorm(n, 0, 0.7))
)
names(items) <- c(paste0("A", 1:4), paste0("B", 1:4))

net <- bootnet::estimateNetwork(items, default = "EBICglasso")
get_edge_weights_summary(net)

InterconectaR documentation built on Oct. 16, 2026, 1:06 a.m.