The code shared here accompanies the paper at https://doi.org/10.1371/journal.pone.0208451. It simulates the effects of various economic trade scenarios on the phenomenon of the ‘disappearing middle’ in the Scottish beef and dairy farming industries. The ‘disappearing middle’ is a situation in which there is a simultaneous observed decline in medium-sized enterprises and rise in the number of small and large-scale enterprises.
The file uploaded here is the codebase as used with the paper https://doi.org/10.1371/journal.pone.0208451.g007. Without the GIS and other supporting data, it will not be possible to run it. Regrettably these data cannot be supplied openly under the licensing and confidentiality terms under which they were used.