Matlab code to reproduce the simulations described in 'Conformist transmission revisited. Population-level frequency dependence is insufficient to evidence individual-level conformist bias'
datasetposted on 26.07.2016 by Alberto Acerbi
Datasets usually provide raw data for analysis. This raw data often comes in spreadsheet form, but can be any collection of data, on which analysis can be performed.
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 firstname.lastname@example.org for any additional information.