View source: R/perm.ds.focal.R
perm.ds.focal | R Documentation |
Warning, the original function (Farine 2017) uses a control factor, the number of focals and the ids of the focals.
perm.ds.focal(
df,
focal,
ctrl = NULL,
alters,
nperm,
progress = T,
method = "sri"
)
df |
a data frame. |
focal |
an integer indicating the column of the focal. |
ctrl |
a numeric vector indicating the control factors. |
alters |
an integer indicating the column of focal's alters. |
nperm |
an integer indicating the number of permutations. |
progress |
a boolean indicating if the permutation process must be visible. |
method |
a string indicating the association index to compute:
|
Pre-network permutation for focal sampling data, and for symmetric behaviour only.
Farine, D. R. (2017). A guide to null models for animal social network analysis. Methods in ecology and evolution, 8(10), 1309-1320.
Sosa, S. (2018). Social Network Analysis, in: Encyclopedia of Animal Cognition and Behavior. Springer.
head(sim.focal.undirected)
t=perm.ds.focal(sim.focal.undirected,focal=3,ctrl=1,alters=4,nperm=10,progress=TRUE,method='sri')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.