A Network model of simple societies inspired by Joseph Tainter's theory of the
collapse of complex societies, described in: **https://arxiv.org/pdf/2102.06698v1.pdf**
**Based on the works of Joseph Tainter:** Tainter, J. A. (1988).The collapse of complex societies. New studies in archaeology. Cambridge: CambridgeUniversity Press
## Installation
Obtain the code and change into directory
```bash
git clone git@github.com:flo-schu/tainter
cd tainter
```
Create environment, activate it and install model package.
the [datalad] option installs the datalad packages which are necessary to
download the dataset.
```bash
conda create -n tainter
conda activate tainter
conda install python=3.9
pip install -e .[datalad]
```
Install the pre-simulated dataset from the open-science foundation (osf.io)
into the folder_publication data
```bash
datalad clone https://osf.io/u897c/ publication_data
```
You should be done. All anylses from the paper can be conducted by executing
the jupyter notebook `scripts/analysis.ipynb`
```bash
jupyter lab scripts/analysis.ipynb
```