perm.net.nl: Node label permutations with or without random factor(s)

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

perm.net.nlR Documentation

Node label permutations with or without random factor(s)

Description

Performs node label permutations.

Usage

perm.net.nl(ldf, labels, rf = NULL, nperm, progress = TRUE)

Arguments

ldf

a list of data frames, with each data frame representing a subset of the random factors (e.g. groups and/or periods)

labels

a numeric or character vector representing the labels to permute.

rf

an integer (column id) or a string (column name) indicating the column holding the factor grouping multiple networks.

nperm

an integer indicating the number of permutations wanted.

progress

a boolean indicating the visualization of the permutation process.

Details

Node label permutations for GLMM models need to permute labels within a control factor.

Value

A list of data frames. Each data frame is the merger of the input lists of data frames. The first element of the list is the original input data, the other elements are the different permutations.

Author(s)

Sebastian Sosa, Ivan Puga-Gonzalez.

References

Croft, D. P., James, R., & Krause, J. (2008). Exploring animal social networks. Princeton University Press.

Croft, D. P., Madden, J. R., Franks, D. W., & James, R. (2011). Hypothesis testing in animal social networks. Trends in Ecology & Evolution, 26(10), 502-507.

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

Examples

df=met.strength(sim.m,df=sim.df)
t=perm.net.nl(df,labels='sex',rf=NULL,nperm=1000,progress=TRUE)

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