Skip to content

Latest commit

 

History

History

code

Code to run all steps of the latitudinal CNDD analysis

It includes the following steps, which can be completed by executing the respective R script.

  1. Data preparation 1_data_prep.R
  2. Mortality models 2_mortality_models.R
  3. Meta models 3_meta_models.R
  4. Tables 4_tables.R

Most of these scripts source other lower level scripts for additional functions and analysis steps, which can be found in the respective subfolder.

The results produced during each step of the analysis will be stored either in the folder data_prep or in a folder out (mortality models, meta-regressions, and tables).

Many steps (e.g. meta-regressions and related tables and plots) are repeated for different definitions of CNDD, i.e. AME and rAME calculated at observed conspecific densities (equilibrium) and AME and rAME calculated at low conspecific densities, which then appear in this order in the respective output.