met.ri {ANTs}R Documentation

R-Index

Description

Calculates the node metric R-Index for all vertices.

Usage

met.ri(M, df = NULL, dfid = 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.

dfid

an integer or a string indicating the column with individual ids in argument df.

Details

R-Index of vertex i is the outstrength of node i divided by the met.strength of node i. This node metric aims to measure if an individual is more likely to receive or emit edges.

Value

Author(s)

Sebastian Sosa, Ivan Puga-Gonzalez.

References

Liao, Z., Sosa, S., Wu, C., & Zhang, P. (2017). The influence of age on wild rhesus macaques' affiliative social interactions. American journal of primatology.

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

Examples

met.ri(sim.m)
head(sim.df)
met.ri(sim.m,df=sim.df)

[Package ANTs version 0.0.16 Index]