Matlab code to reproduce the simulations described in 'Conformist transmission revisited. Population-level frequency dependence is insufficient to evidence individual-level conformist bias'
收藏Mendeley Data2024-01-31 更新2024-06-27 收录
下载链接:
https://data.4tu.nl/articles/_/12694565/1
下载链接
链接失效反馈官方服务:
资源简介:
The Matlab code in this folder allows to reproduce the simulations described in: Acerbi, van Leeuwen, Haun, Tennie, 2016, (submitted to) Scientific Reports. The main script is “model.m”. To run the various conditions described in the paper is necessary to first uncomment the lines referring to the parameter(s) of the specific condition (from line 18 to line 42), as well as the call to the function of that condition (from line 52 to line 64). As it is, the simulation runs the condition “Boyd and Richerson original” described in the paper, with D=1. Once uncommented the desired condition, just call *model* from the Matlab command window. All conditions (excluding “Random copying” which can be realised by setting the appropriate parameters in any other condition, for example setting D=0 in “Boyd and Richerson original”, or n_dem=N in “Demonstrators_subgroup”) are in a separate file of the same name. Type *help name_of_the_condition* in the Matlab command window to obtain some information (but please always refer on the longer descriptions in the paper). The relevant output of the simulation is stored in the variable “copying”. “copying” contains the probability to copy versus the frequency of the variant, and it is used to calculate whether the condition can produce or not the “sigmoid”. Just type *plot(copying)* in the Matlab command window at the end of the run to have an idea of the results. Contact alberto.acerbi@gmail.com for any additional information.
本文件夹内的Matlab代码可复现Acerbi、van Leeuwen、Haun、Tennie于2016年提交至《科学报告(Scientific Reports)》的论文中所述的仿真实验。主脚本为"model.m"。若要运行论文中描述的各类实验条件,需先取消对应特定条件参数(第18行至第42行)及该条件函数调用语句(第52行至第64行)的注释。默认未修改的情况下,该仿真将运行论文中所述的"Boyd and Richerson original"条件,此时参数D=1。完成所需实验条件的注释取消操作后,只需在Matlab命令行窗口中调用`model`即可运行。除"随机复制(Random copying)"外,其余所有实验条件均存放于同名独立文件中;该条件可通过在任意其他实验条件中设置合适参数实现,例如在"Boyd and Richerson original"中设置D=0,或在"Demonstrators_subgroup"中设置n_dem=N。可在Matlab命令行窗口中输入`help 条件名`以获取相关信息,但请务必以论文中的详细描述为准。仿真的相关输出结果存储于变量"copying"中,该变量记录了复制概率与变体频率的对应关系,可用于判断该实验条件能否生成S型曲线(Sigmoid)。仿真运行结束后,只需在Matlab命令行窗口中输入`plot(copying)`即可直观查看结果。如需获取额外信息,请联系alberto.acerbi@gmail.com。
创建时间:
2024-01-31



