This repository is organized as follows:
raw-datacontains any data that were not generated by us, in the form they were made available in (so not necessarily "raw", but not processed in this repository)processed-datacontains data written out by code in this repositoryfunctionscontains user-defined functionssrccontains source code for Stan modelsresultscontains results written out by the scripts
Scripts are all in the main project folder.
To run models for summer flounder, follow these steps:
- Download the 2020 OceanAdapt release from this stable DOI: 10.5281/zenodo.3885625
- Run
01_import_summer_flounder.Rto pull in and filter these data - Run
02_get_summer_flounder_params.Rto mine parameters from summer flounder stock assessment tables - Run
03_prep_stan_data.Rto reshape the data for the DRM - Run
04_run_drms.Rto actually run the models. Be warned they are memory- and storage-intensive, and set up to run on a HPC. - Run
05_convergence_checks.Rto summarize diagnostics for the models. - Run
06_model_evaluation.Rto iterate over converged models, create alternative models (SDMs, persistence forecast), and quantify model skill. - Run
07_thin_posteriors.Rto thin the Stan outputs and make them tractable files. (You can skip this; the outputs of it are on GitHub, so you can still examine the thinned posteriors without running any Stan code or having the full posterior files, which are large.) - Run
08_paper_stats_and_figures.Rto generate the figures and in-text statistics in the manuscript. - Run
09_supplement.Rmdto generate the supplementary materials for the paper.