met.ge: Global efficiency

View source: R/met.ge.R

met.geR Documentation

Global efficiency

Description

Calculates the global efficiency of a network.

Usage

met.ge(
  M,
  df = NULL,
  weighted = TRUE,
  shortest.weight = FALSE,
  normalization = TRUE,
  directed = TRUE,
  out = TRUE
)

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.

weighted

if false, it binarizes the square adjacency matrix M. Geodesic distances and diameter are based only on the presence or absence of edges.

shortest.weight

if false, and weighted is TRUE, it considers the highest weights as the shortest path. The value returned is the average of inverse of the all shortest distances (1/dij). Thus a higher value means a higher efficiency. Note that in constrast to unweighted graphs where global efficiency assumes values from 0 to 1, in weighted graphs the values depend on the weights associated to the links. It is therefore very useful to compare the global efficiency of a given weighted network with the global efficiency of a randomized version of the network or to a network of same size but different distribution of weights among the links. By itself this value is meaningless.

normalization

normalizes the weights of the links i.e. divides them by the average strength of the network.

directed

if false, it symmetrizes the matrix. Otherwise, it calculates geodesic distances and diameter according to the directionality of the links.

out

if true, it considers outgoing ties.

Details

The global efficiency provides a measure of how efficiently information is exchanged in a network. It can be calculated in binary or weighted networks, and for undirected or directed networks. Depending on the problematic, care is needed for the choice of calculation method (binary or weighted, directed or undirected, and using the lowest or the highest met.strength as shortest path).

Value

  • a double representing the global efficiency 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 global efficiency of the corresponding matrix of the list.

  • A list of arguments df with a new column of network global efficiency 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 .weighted, shortest.weight, normalization, directed and out.

  • A list of arguments df with a new column of network global efficiency 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

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

Examples

met.ge(sim.m)

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