The code includes:
MonarchThreatsCode.R, which provides all code used in the analysis.
Required data includes:
FullThreatsData.csv and component_loadings.csv
While the code demonstrates how to interpolate the missing data, the FullThreatsData.csv has all missing values filled in.
Similarly, the partial least squares demonstrates how the PLS was conducted, but the component_loadings.csv file contains the actual loadings presented in the paper.
Outputs include:
Partial least squares model results, plots of the partial least squares loadings, exploratory regression analysis, plotting of the parameter estimates from the best model, confounding analysis, structural equation modeling, and other plotting functions depicting results of the study.