edgerep: Edge Replication

Description Usage Arguments Value Author(s) Examples

Description

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

Usage

1
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

1
2
3
4
5
6
7
# 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 documentation built on May 28, 2021, 5:11 p.m.