perm.net.lk: Matrix links permutations

View source: R/perm.net.links.R

perm.net.lkR Documentation

Matrix links permutations

Description

Permutes matrix links.

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.

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)

SebastianSosa/ant documentation built on Sept. 23, 2023, 7:06 a.m.