calc_dyadic_rates_mymg: Calculate dyadic rates of interactions for several groups and...

Description Usage Arguments

Description

Based on calc_dyadic_rates but works for several groups and years. Thus, function calculates rates of interactions for all female dyads meeting specific criteria (age, focal effort) within each of the specified groups and years.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
calc_dyadic_rates_mymg(
  focaldata,
  census_pace,
  biography_pace,
  groups,
  years,
  minAgeF,
  behaviours_duration,
  behaviours_events,
  minEffortDyad,
  minEffortInd,
  roles_included = c("D", "R", "M"),
  dyads_summarized = TRUE
)

Arguments

focaldata

Dataset with focaldata from capuchin monkeys

census_pace

Dataframe from the PACE database with monthly capuchin census data

biography_pace

Dataframe from the PACE database with individual biography data

groups

Vector with all social groups to be included

years

Vector will all years to be included

minAgeF

The minimum age of females to be included (in years)

behaviours_duration

Behaviours with duration (e.g. grooming) to be included

minEffortDyad

Minimum duration (in hours) a dyad has to be observed to be included (observation time of IndA while IndB was around + observation time IndB while IndA was around)

minEffortInd

The minimum duration (in hours) an individual has to be observed to be included

roles_included

Which roles should be included, e.g., (D)irected, (R)eceived, or (M)utual

dyads_summarized

Should dyadic values be summarized? If FALSE, each behavior will be listed as IndA->IndB and as IndB->IndA separately (per dyad and per role)


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