met.ci: Centralisation index

View source: R/met.ci.R

met.ciR Documentation

Centralisation index

Description

Computes network Centralisation index

Usage

met.ci(M, df = NULL)

Arguments

M

a square adjacency matrix, or a list of square adjacency matrices, or an output of ANT functions stat.ds.grp, stat.df.focal, stat.net.lk.

df

a data frame of same length as the input matrix or a list of data frames if argument M is a list of matrices or an output of ANT functions stat.ds.grp, stat.df.focal, stat.net.lk.

Details

Centralisation index of a network is based on eigenvector centrality.

Value

#'

  • a double representing the centralisation index of the network if argument M is a square matrix.

  • A list of doubles if argument M is a list of matrices and if argument df is NULL. Each double represents the centralisation index of the corresponding matrix of the list.

  • A list of arguments df with a new column of network centralisation index if argumentdf is not NULL and if argument M is a list of matrices. The name of the column is adapted according to arguments values binary and sym.

  • A list of arguments df with a new column of network centralisation index if argument df is not NULL, if argument M is an output from ANT functions stat.ds.grp, stat.df.focal, stat.net.lk for multiple matrices permutations, and if argument df is a list of data frames of same length as argument M.

Author(s)

Sebastian Sosa, Ivan Puga-Gonzalez

References

Pasquaretta, C., Levé, M., Claidiere, N., Van De Waal, E., Whiten, A., MacIntosh, A. J., ... & Crofoot, M. C. (2014). Social networks in primates: smart and tolerant species have more efficient networks. Scientific reports, 4, 7600.

Examples

met.ci(sim.m)

SebastianSosa/ANTs documentation built on Sept. 25, 2023, 11:06 p.m.