https://github.com/ccp-eva/competitive-altruism

https://github.com/ccp-eva/competitive-altruism

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.6%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: ccp-eva
  • License: cc-by-4.0
  • Language: R
  • Default Branch: main
  • Size: 4.18 MB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created almost 5 years ago · Last pushed over 2 years ago
Metadata Files
Readme License

README.md

Chimpanzees engage in competitive altruism in a triadic Ultimatum Game

This repository contains all the raw data, the statistical analysis code and the plotting code used in authoring the paper "Chimpanzees engage in competitive altruism in a triadic Ultimatum Game" by Sánchez-Amaro et al. By cloning the repository you can reproduce all the figures and essential statistical numbers found in the paper.

The data and code are both licensed under the Creative Commons Attribution copyright license, like the paper itself. See the LICENSE.md file for details.

Replication quickstart guide:

After cloning the repository, the various .R scripts in the analysis/ folder should be run in the following order. Note that all scripts expect to be run with the analysis/ folder as the working directory.

  1. Run data_reformat.R. This will produce a number of intermediary data files in the data/ folder, all derived from the single raw data file data/competitive_altruism_dataset.csv.
  2. Run each of the fit_*.R scripts. They can be run in any order. Each will fit one or more brms models and save the fitted models as .rds files. All further scripts require that these .rds to exist and will fail with errors if they do not.
  3. Run the knit_summary.R script. This will load all the saved model files from the previous step and produce a matching Markdown file (model_summaries.knit.md) and PDF file (model_summaries.pdf). The model summaries included in the paper's Electronic Supplementary Material are precisely this PDF file. The Markdown file produced from the model fits used for the published paper was committed to the repository prior to initial submission of the manuscript. This means that if you re-fit the models, you can use git diff to easily confirm that your new numbers do not differ substantially from those seen in the paper.
  4. Run each of the plot_*.R scripts. They can be run in any order. Each will save one or more figures in the plots/ folder. All figures used in the paper will be reproduced, plus some extras. Minor differences may be visible between your reproduced figures and those in the paper, due to variations in MCMC model fits.

Owner

  • Name: Comparative Cultural Psychology
  • Login: ccp-eva
  • Kind: organization
  • Email: info_ccp@eva.mpg.de
  • Location: Leipzig, Germany

Official Repository of the Comparative Cultural Psychology Department of the Max Planck Institute for Evolutionary Anthropology

GitHub Events

Total
Last Year

Issues and Pull Requests

Last synced: over 1 year ago

All Time
  • Total issues: 0
  • Total pull requests: 2
  • Average time to close issues: N/A
  • Average time to close pull requests: 4 minutes
  • Total issue authors: 0
  • Total pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
  • AlexSanchezAmaro (2)
Top Labels
Issue Labels
Pull Request Labels