Density_report: Network Density Report

View source: R/Density_report.R

Density_reportR Documentation

Network Density Report

Description

Calculates and reports network density statistics.

Usage

Density_report(edge.matrix)

Arguments

edge.matrix

Network edge matrix (e.g., from qgraph).

Value

A character string reporting how many edges differ from zero out of the possible edges, and the resulting density as a percentage.

Examples

w <- matrix(c(0, 0.3, 0,
              0.3, 0, 0.2,
              0, 0.2, 0), nrow = 3,
            dimnames = list(c("A", "B", "C"), c("A", "B", "C")))
Density_report(w)

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