Skip to content

Latest commit

 

History

History
20 lines (11 loc) · 672 Bytes

README.md

File metadata and controls

20 lines (11 loc) · 672 Bytes

opinion_dynamics

Code used for "An exploration of drivers of opinion dynamics". A full description of the model including an ODD protocol can be found in the article.

Code created in python 3.8 with the following module versions:

numpy 1.20.1

matplotlib 3.3.4

seaborn 0.11.1

scipy 1.6.2

networkx 2.5

Figure 1 can be reproduced with the jupyter notebook 'code_fig1.ipynb'.

Figures 2-5 can be reproduced with the jupyter notebook 'code_verification.ipynb'.

Figure 7 can be reproduced with the jupyter notebook 'figs_OFAT.ipynb'. This notebook uses the output generated from the python files 'ODmodel_effect_parametername.py', with the different parameter names.