Ultrametric distribution of culture vectors in an extended Axelrod model of cultural dissemination

Software

Source code: axelrod_model_code.tar.gz

This software is free under the terms of the GNU General Public License. It is a modified version of the code originally written by Jens Pfau, extended to include bounded confidence, support for external initial conditions data and other methods of generating initial conditions, and parallelization using MPI (with mpi4py). It also requires the Python libraries NumPy (part of the SciPy package) and igraph, and uses code written in R to compute cophenetic correlation coefficients.

The Python code was run with NumPy version 1.7.1, SciPy version 0.12.0, igraph version 0.6 and mpi4py version 1.3.1 under Python version 2.7.5 on a cluster running CentOS 5 (Linux 2.6.32-358.18.1.el6.x86_64) with Open MPI version 1.6.5. The C++ code was compiled with gcc version 4.4.7. R version 2.15.3 was used for running R scripts.

Figures and data

Figures, data, and scripts for generating the figures: figures_data.tar.gz (note, this file is very large; it is 1.1 GB compressed to download, and uncompresses to approximately 7 GB of data).

Note that the Eurobarometer and GSS data is not included due to restrictions on redistribution. However the scripts for processing the data are included, and the original data can be obtained from the locations cited in the paper.

The scripts are mostly written in R and use the following R libraries, which can be installed from the CRAN repository with the R install.packages() command: RColorBrewer, clue, doBy, ggplot2, gplots, grid, gridExtra, Hmisc, igraph, lattice, laticeExtra, methods, plyr, reshape, scales. Note that it may not be necessary to install all these libraries explicitly; some of them are dependencies of the others. The two major libraries used are ggplot2 (version 0.9.3.1) for generating plots and igraph (version 0.6.5-2) for network analysis.

Reference

If you use our software, data, or results in your research, please cite:

Contact

Alex Stivala

This page, its contents and style, are the responsibility of the author and do not necessarily represent the views, policies or opinions of The University of Melbourne.
Last Modified: