perm.net.lk {ANTs} R Documentation

Usage

perm.net.lk(M, sym = FALSE, erase.diag = TRUE, nperm, progress = TRUE)


Arguments

 M a square adjacency matrix or a list of square adjacency matrices. sym if true it vectorizes the lower triangle only . erase.diag if true it erases the diagonal of the matrix. nperm number of permutations wanted. progress a boolean indicating if the permutation process must be visible.

Details

Edge permutations can be used to create random networks based on the observed network. Such permutation method is useful when analysing patterns of interaction such as assortativity.

Value

list of square matrices of length nperm + 1.

Author(s)

Sebastian Sosa, Ivan Puga-Gonzalez.

References

Sosa, S. (2018). Social Network Analysis, in: Encyclopedia of Animal Cognition and Behavior. Springer.

Examples

t=perm.net.lk(sim.m, sym = FALSE, erase.diag = TRUE, nperm=10, progress=TRUE)


[Package ANTs version 0.0.16 Index]