Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

edgerep

Edge Replication


Description

Computes the number of edges that replicate between two cross-sectional networks

Usage

edgerep(A, B, corr = c("pearson", "spearman", "kendall"))

Arguments

A

An adjacency matrix of network A

B

An adjacency matrix of network B

corr

Correlation method for assessing the relationship between the replicated edge weights. Defaults to "pearson". Set to "spearman" for non-linear or monotonic associations. Set to "kendall" for rank-order correlations

Value

Returns a list containing:

replicatedEdges

The edges that replicated and their weights

replicated

Number of edges that replicated

meanDiff

The average edge weight difference between the edges that replicated

sdDiff

The standard deviation edge weight difference between the edges that replicated

cor

The correlation between the edges that replicated

Lists for each network contain:

totalEdges

Total possible number of edges to be replicated

percentage

Percentage of edges that replicated relative to total possible

density

The density of the network

Author(s)

Alexander Christensen <alexpaulchristensen@gmail.com>

Examples

# normal set to FALSE for CRAN tests
tmfg <- TMFG(neoOpen, normal = FALSE)$A

# normal set to FALSE for CRAN tests
mast <- MaST(neoOpen, normal = FALSE)

edges <- edgerep(tmfg, mast)

NetworkToolbox

Methods and Measures for Brain, Cognitive, and Psychometric Network Analysis

v1.4.1
GPL (>= 3.0)
Authors
Alexander Christensen [aut, cre] (<https://orcid.org/0000-0002-9798-7037>), Guido Previde Massara [ctb] (<https://orcid.org/0000-0003-0502-2789>)
Initial release
2020-12-07

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.