Code and data for Pichkar et al. PNAS 2024, "Genetic and linguistic comparisons reveal complex sex-biased transmission of language features"
收藏DataCite Commons2024-09-18 更新2024-11-06 收录
下载链接:
https://figshare.com/articles/dataset/Code_and_data_for_Pichkar_et_al_PNAS_2024_Genetic_and_linguistic_comparisons_reveal_complex_sex-biased_transmission_of_language_features_/27058444
下载链接
链接失效反馈官方服务:
资源简介:
This repository includes code and data to repeat analyses in "Genetic and linguistic comparisons reveal complex sex-biased transmission of language features" by Pichkar, Surowiec, and Creanza, PNAS 2024<br><br>Required packagesThis code runs in R (written for 4.3.1) with several packages. The following can be installed with <code>install.packages</code>: <code>maps, ggplot2, magrittr, dplyr</code>. To generate the mtDNA distance matrix, you will also need to install the <code>ape</code> package.Instructions for installing the <code>rethinking</code> package can be found here: https://github.com/rmcelreath/rethinkingRunning the codeIn the <code>code</code> directory, either run all the code together with <code>Rscript run_all_together.R</code> or source each file separately in R or Rstudio:"collect_data_for_analysis.R" : uses the files in the 'data' directory to generate objects that are used for analysis. Must be run before other scripts."worldwide_threshold_coef.R" : analysis of worlwide trends, and creation of line plots for nuclear and mtDNA analyses."per_pop_coef.R" : analysis of coefficient values per population and the creation of maps to plot those values."worldwide_endoexogamy_coef.R" : extended analysis that measures the effects of endogamy -- rather than those of postmarital residence and descent patterns, which are included in the previous two files.
提供机构:
figshare
创建时间:
2024-09-18



