Code Portfolio


R Code

Simulate the spread of a pathogen through a network by both social and non-social transmission - download

Compare the spread of a pathogen over a network by exclusively social and exclusively asocial transmission, with AIC values for each model - download

Compare the spread of a pathogen over a network by mixed social-asocial and exclusively asocial transmission, with AIC values for each model - download

Print a basic SIR graph from infection statuses over time - download

Reproduce figure 1 from McCabe et al. 2014 PRSB, with both a scatterplot and phylogeny with tip shading indicating trait values - download

Reproduce figure 2 from McCabe et al. 2014 PRSB, a 2x2 matrix of histograms with differential shading of positive and negative values - download

MATLAB Code

Reproduction of Boyd et al. punisher vs. non-punisher simulation - download

McCabe and Rand 2014 punisher vs. anti-social punisher simulation - download

Alternatively, all of my code files are available on GitHub. If you see any errors or would like to add new functionality, feel free to fork and/or merge to your heart's content!