calc_ppi: Calculates the Partner Preference Index (PPI) based on two...

Description Usage Arguments Details

View source: R/calculate-sna-pars.R

Description

This function calculate the Partner Preference Index (PPI) as described by Silk, Cheney and Seyfarth (2013, Evolutionary Anthropology):

Usage

1
calc_ppi(m1, m2, n_Slots = 3, details = FALSE)

Arguments

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

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:


urskalbitzer/daginR documentation built on Jan. 21, 2020, 1:26 a.m.