Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
FrsLry committed Dec 23, 2024
1 parent ad5d724 commit 2a0b464
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@

This repository contains the scripts to reproduce the statistical analyses, figures, and a reproducible example to fit the dynamic *N*-mixture model for the Blue Jay. This is how it is structured:

* **Dynamic N-mixture models:** the dynamic *N*-mixture model can be found in `.\model\jagsModel.txt` and can be used to reproduce the results. We created a reproducible example with the Blue Jay in `.\scripts\example_blue_jay.R`. The species can be changed by changing the variable `species` in the script. Please note that it may take *ca.* 2 days for the model to fit. The data provided contains the input data for 564 species. The summary of the models can be found in `.\summary_models\`.
* **Dynamic N-mixture models:** The dynamic *N*-mixture model can be found in `.\model\jagsModel.txt` and can be used to reproduce the results. We created a reproducible example with the Blue Jay in `.\scripts\example_blue_jay.R`. The species can be changed by changing the variable `species` in the script. Please note that it may take *ca.* 2 days for the model to fit. The data provided contains the input data for 564 species. The summary of the models can be found in `.\summary_models\`.

* **Propagating uncertainty in mixed models:** the second part of the analysis can be found in `.\mixed_model\`. There are 3 scripts to samples the chains at the routes/species, family and habitat levels. The mixed models can be fit by using the scripts in `.\mixed_model\script_fitting\`. The commented model is: `.\mixed_model\script_fitting\trend_model_N_spatial.R`.
* **Propagating uncertainty in mixed models:** The second part of the analysis can be found in `.\mixed_model\`. There are 3 scripts to samples the chains at the routes/species, family and habitat levels. The mixed models can be fit by using the scripts in `.\mixed_model\script_fitting\`. The commented model is: `.\mixed_model\script_fitting\trend_model_N_spatial.R`.

* **Figures:** The figures can be recreated using the script `.\mixed_model\figures.R`.

* **Simulations:** In `.\simulations\`, users can use a simulation framework, with known recruitment and survival parameters, and then use the dynamic N-mixture model (Dail & Madsen 2011) to correctly estimate the recruitment and survival parameters. Users are invited to test several values of parameters. Also accessible [here](https://frslry.github.io/ms_acceleration/simulations/simulations.html).
* **Simulations:** In `.\simulations\`, users can use a simulation framework, with known recruitment and survival parameters, and then use the dynamic N-mixture model (Dail & Madsen 2011) to correctly estimate the recruitment and survival parameters. Users are invited to test several values of parameters. Also accessible [here](https://frslry.github.io/ms_acceleration/simulations/simulations.html).

* **Coincidence between hotspots of acceleration and other variables:** We explored how environmental and anthropogenic variables correlate with the patterns of acceleration, change in abundance, recruitment rate, and loss rate using Random Forests and variable importance analyses. These analyses can be found in `.\interpreting_patterns\`.

## System requirements

Expand Down

0 comments on commit 2a0b464

Please sign in to comment.