Supplement 1. Script with R code for statistical analysis.

2016-08-05T08:03:01Z (GMT) by Christine N. Meynard J. F. Quinn

File List

ScriptMeynard&Quinn.R -- Annotated R code.


This file contains code to replicate the statistical analysis performed in the paper, and comments that will help the reader understand the commands. The file can be opened within any text editor and copied into the R command line. It can also be opened from the R script environment. Testing of spatial autocorrelation on raw variables and residuals from regressions are demonstrated. The correlation matrix to perform the structural equation modeling (SEM) analysis is also provided, as well as code for different SEM analysis using this data. 

Required software: R statistical package, and additional libraries spdep and sem.