nwfsc-cb / Threshold-Detection

Repo for simulation studies to explore detectability of ecological thresholds
1 stars 0 forks source link

Threshold-Detection

Repository with code and data used in "Evaluating the robustness of generalized additive models as a tool for threshold detection in variable environments" by Detmer et al.

DOI Badge for this repository: DOI

Details on repo files:

run_simulations.Rmd = code for running all of the theoretical simulation studies (everything except the empirical hake case study)

sim_plots.Rmd = code for plotting the results of the theoretical simulation studies

conceptual_plots.Rmd = code for mkaing the conceptual figures (threshold definitions figure, simulation steps figures)

cciea_data.Rmd = code for downloading the CCIEA indicator data and analyzing it to inform choice of time series lenghts and observation errors in the generic simulations

hake_example.Rmd = code for the empirical case study on Pacific hake (analyzing relationships between ocean temperature and the proportion of hake in Canada, simulating datasets similar to the observed data)

simulation ouputs folder = outputs from the simulations run in run_simulations.Rmd (simulations using focal and nonfocal driver-response relationships, simulations with a linear and exponential covariate that is vs isn't included in the estimation models) and hake_example.Rmd

hake data folder = empirical hake and temperature data used in "hake_example.Rmd"

functions folder: all of the functions used in the simulation analyses

load_functions.R = loads all of the functions in the "functions" folder into the workspace

figurepds folder = pdfs of all the figures in the manuscript