
Last chance! 50% off unlimited learning
Sale ends in
Computes the number of edges that replicate between two cross-sectional networks
edgerep(A, B, corr = c("pearson", "spearman", "kendall"))
An adjacency matrix of network A
An adjacency matrix of network B
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
Returns a list containing:
The edges that replicated and their weights
Number of edges that replicated
The average edge weight difference between the edges that replicated
The standard deviation edge weight difference between the edges that replicated
The correlation between the edges that replicated
Lists for each network contain:
Total possible number of edges to be replicated
Percentage of edges that replicated relative to total possible
The density of the network
# NOT RUN {
# 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)
# }
Run the code above in your browser using DataLab