edgerep | R Documentation |
Computes the number of edges that replicate between two cross-sectional networks
edgerep(A, B, corr = c("pearson", "spearman", "kendall"))
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 |
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 |
Alexander Christensen <alexpaulchristensen@gmail.com>
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.