Description Usage Arguments Details
View source: R/calculate-sna-pars.R
This function calculate the Partner Preference Index (PPI) as described by Silk, Cheney and Seyfarth (2013, Evolutionary Anthropology):
1 |
m1, m2 |
The two matrices. |
n_Slots |
number of top partners evaluated (S in Silk et al. 2013) |
if |
FALSE, returns a single value. If TRUE, a dataframe with details |
PPI = (2S - U)/(2S - S - X) with S = number of partner rank slots being evaluated (here 'n_Slots'), U = Number of different top partners that the individual had in those years, and X = Number of top partners present in t1, but not t2:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.