This data and set of Matlab scripts reproduces the results presented in
Baker, J. W., and Bradley, B. A. (2017). “Intensity measure correlations observed in the NGA-West2 database, and dependence of correlations on rupture and site parameters.” Earthquake Spectra, 33(1), 145–156.
The script mainScript.m calls the other scripts in the folder, and so is a good starting place when aiming to understand the code in this repository.
This code has been provided to document the calculations in the above-mentioned paper, and facilitate additional related calculations. It is not fully documented, however, This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.