Skip to content

Strauss & Holekamp (2019): Inferring longitudinal hierarchies: framework and methods for studying the dynamics of dominance

Notifications You must be signed in to change notification settings

MaraHyenaProject/strauss2019_longitudinal_hierarchies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code and data for Strauss & Holekamp (2019) Inferring longitudinal hierarchies paper

Strauss ED, Holekamp KE. Inferring longitudinal hierarchies: framework and methods for studying the dynamics of dominance. Journal of Animal Ecology.

Overview

Files are numbered according to the order of their appearance in the analysis. File paths in the scripts will need to be changed in order for the code to run properly. Below is a list of files in the order they should be run to reproduce the analysis.

Simulations
  • 0.define_functions - define functions used throughout analysis
  • 1.0.simulation_scripts - folder containing simulation scripts. Output is saved in parameter specific folders
    • 1.params_for_simulation - set general simulation parameters
    • 3.simulate_hierarchies_and_interactions - simulate data
    • 5.infer_simulated_hierarchies - infer hierarchies from simulated data using different methods
    • 7.process_data_simulated_hierarchy_inference - process data for analysis
    • 9.model_methods_simulations - compare performance of different methods
  • 1.1.simulation_workflow_0.9_few_changes - folder containing .RData files produced by the scripts in 1.0.simulation_scripts. Correlation between true ranks and rank-associated trait = 0.9. Hierarchy is simulated with few changes.
  • 1.2.simulation_workflow_0.9_many_changes - folder containing .RData files produced by the scripts in 1.0.simulation_scripts. Correlation between true ranks and rank-associated trait = 0.9. Hierarchy is simulated with many changes.
  • 1.3.simulation_workflow_0.7_few_changes - folder containing .RData files produced by the scripts in 1.0.simulation_scripts. Correlation between true ranks and rank-associated trait = 0.7. Hierarchy is simulated with few changes.
  • 1.4.simulation_workflow_0.5_few_changes - folder containing .RData files produced by the scripts in 1.0.simulation_scripts. Correlation between true ranks and rank-associated trait = 0.5. Hierarchy is simulated with few changes.
  • 1.5.simulation_workflow_0.2_few_changes - folder containing .RData files produced by the scripts in 1.0.simulation_scripts. Correlation between true ranks and rank-associated trait = 0.2. Hierarchy is simulated with few changes.
  • 21.check_k_few_changes - rerun some analyses with K = 200 for Elo-rating methods for supplemental materials.
  • 21.check_k_many_changes - rerun some analyses with K = 200 for Elo-rating methods for supplemental materials.
  • 22.passive_plots - produce plots of dynamics due to passive processes for supplemental materials.
Analysis of empirical data
  • 0.define_functions - define functions used throughout analysis
  • 0.rawdata - raw data before cleaning and prep for analysis. Available upon request from Kay Holekamp. To use tidied data, skip to 3.hyena_data.RData.
  • 2.0.run_empirical_scripts - source all scripts in analysis of empirical data
  • 2.prep_empirical_data - tidy and prepare raw data for analysis
  • 3.hyena_data.RData - tidy data file (start here)
  • 4.empirical_ranks_females - infer adult female hierarchies using different methods.
  • 5.female_ranks.RData - hierarchies inferred by different methods for females
  • 6.empirical_ranks_males - infer adult male hierarchies using different methods.
  • 7.male_ranks.RData - hierarchies inferred by different methods for males
  • 8.process_model_plot_empirical_females - compare performance of methods at inferring longitudinal hierarchies of adult females
  • 9.process_model_plot_empirical_males - compare performance of methods at inferring longitudianl hierarchies of adult males
  • 10.descriptives_and_metadata - basic descriptives of empirical data
  • 11.prep_data_daily_periods - prep data for analysis with daily periods rather than yearly periods
  • 12.hyena_data_daily_period.RData - data prepped for inferring hierarchies with daily period.
  • 13.estimate_ranks_daily_period - infer hierarchies with daily periods
  • 14.estimate_ranks_2yr_period - infer hierarchies with 2-year periods
  • 15.female_ranks_daily.RData - hierarchies inferred with daily periods
  • 16.female_ranks_2yr.RData - hierarchies inferred with 2-year periods
  • 17.process_hierarchies_variable_periods - prep data to compare hierarchy dynamics for hierarchies inferred with different period delineation rules
  • 18.data_variable_periods.RData - data for testing effect of period delineation rule
  • 19.test_effect_of_period - plot effect of period delineation rule
  • 20.confirm_transitivity - assess triangle transitivity
  • 22.passive_plots - plot hierarchy dynamics due to passive processes

About

Strauss & Holekamp (2019): Inferring longitudinal hierarchies: framework and methods for studying the dynamics of dominance

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages