R-code used to run the 2-patch 2-stage vec-permutation model. - Gervasi, Vincenzo; Gervasi, Vincenzo (Dryad Digital Repository, 2019)