assoc_mat_one_id: Association indexes for one individual

View source: R/RcppExports.R

assoc_mat_one_idR Documentation

Association indexes for one individual

Description

Individual associations indexes.

Usage

assoc_mat_one_id(Mgbi, id, method)

Arguments

id

an integer indicating the column (c++ refering) of the individual to which compute the association index.

method

a string indicating the type of association matrix:

  • 'sri' for Simple ratio index: x/x+yAB+yA+yB

  • 'hw' for Half-weight index: x/x+yAB+1/2(yA+yB)

  • 'sr' for Square root index:x/sqr((x+yAB+yA)(x+yAB+yB))

Mfbi

a group by individual matrix.

Details

Association indexes allow to handle heterogeneity of time of observation.

Value

A square matrix of association according to association index choose:

Author(s)

Sebastian Sosa, Ivan Puga-Gonzales.

References

Whitehead, H. A. L. (1997). Analysing animal social structure. Animal behaviour, 53(5), 1053-1067.


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