joint_gregariousness | R Documentation |
This function calculates the "joint gregariousness" for each dyad, as given by Whitehead & James (2015)
joint_gregariousness(network, log.jg = T)
network |
A square matrix, defining the network from which to calculate joint gregariousness |
log.jg |
Logical, indicating whether the log-transformed scores are to be returned. |
Joint gregariousness is defined by Whitehead & James (2015) as:
joint gregariousness[i,j] = log(greg[i] * greg[j])
, where greg[i] is
∑_{k \neq j} network[i,k]
This definition removes each dyads edge weight from the calculation of their joint gregariousness. The function allows the user to get the non log-transformed value. This is useful if there are individuals with only as single non-zero edge weight.
A square matrix of dyadic joint gregariousness scores.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.