Smith_Edwards_GAM_BBS

所属分类:论坛
开发工具:R
文件大小:0KB
下载次数:0
上传日期:2020-10-26 19:11:23
上 传 者sh-1993
说明:  描述BBS的分层贝叶斯GAM的论文的完整代码和模型
(Full code and models for paper describing a hierarchical Bayesian GAM for the BBS)

文件列表:
Comparison_summary.r (9274, 2020-10-26)
GAM_Paper_Script.Rproj (205, 2020-10-26)
comparison_script.R (16213, 2020-10-26)
comparison_summary_output.RData (574761, 2020-10-26)
figures/ (0, 2020-10-26)
figures/Fig 1.pdf (372792, 2020-10-26)
figures/Fig 10.pdf (142295, 2020-10-26)
figures/Fig 2.pdf (40743, 2020-10-26)
figures/Fig 3.pdf (207250, 2020-10-26)
figures/Fig 4.pdf (7159, 2020-10-26)
figures/Fig 5.pdf (33513, 2020-10-26)
figures/Fig 6.pdf (48715, 2020-10-26)
figures/Fig 7.pdf (4632, 2020-10-26)
figures/Fig 8.pdf (11104, 2020-10-26)
figures/Fig 9.pdf (12554, 2020-10-26)
figures/supplement/ (0, 2020-10-26)
figures/supplement/Fig 1 all species.RData (492276, 2020-10-26)
figures/supplement/Fig 1 all species.pdf (510725, 2020-10-26)
figures/supplement/Fig 10alt.RData (55412, 2020-10-26)
figures/supplement/Fig 10alt.pdf (5154, 2020-10-26)
figures/supplement/Fig 2 all species.RData (4561275, 2020-10-26)
figures/supplement/Fig 2 all species.pdf (216024, 2020-10-26)
figures/supplement/Fig 4 all models.RData (70827, 2020-10-26)
figures/supplement/Fig 4 all models.pdf (8886, 2020-10-26)
figures/supplement/Fig 5 all species.RData (1041454, 2020-10-26)
figures/supplement/Fig 5 all species.pdf (272108, 2020-10-26)
figures/supplement/Fig 6 all species.RData (404332, 2020-10-26)
figures/supplement/Fig 6 all species.pdf (497492, 2020-10-26)
figures/supplement/Fig 9 all species.RData (314001, 2020-10-26)
figures/supplement/Fig 9 all species.pdf (91574, 2020-10-26)
figures/supplement/Supplemental Material Figures S1 to S3.Rmd (4223, 2020-10-26)
figures/supplement/Supplemental Material Figures S4 to S7.Rmd (2922, 2020-10-26)
figures/supplement/Supplemental Material Figures S8 to S9.Rmd (5621, 2020-10-26)
figures/supplement/Supplemental-Material-Figures-S1-to-S3.pdf (883345, 2020-10-26)
figures/supplement/Supplemental-Material-Figures-S4-to-S7.pdf (3298031, 2020-10-26)
figures/supplement/Supplemental-Material-Figures-S8-to-S9.pdf (663534, 2020-10-26)
figures/supplement/all_suppl_figures.RData (17718859, 2020-10-26)
figures/supplement/comparative index plots.pdf (524054, 2020-10-26)
... ...

# North American Breeding Bird Survey status and trend estimates to inform a wide-range of conservation needs, using a flexible Bayesian hierarchical generalized additive model The status and trend estimates derived from the North American Breeding Bird Survey (BBS), are critical sources of information for bird conservation. However, the estimates are partly dependent on the statistical model used. Therefore, multiple models are useful because not all of the varied uses of these estimates (e.g. inferences about long-term change, annual fluctuations, population cycles, recovery of once declining populations) are supported equally well by a single statistical model. Here we describe Bayesian hierarchical generalized additive models (GAM) for the BBS, which share information on the pattern of population change across a species' range. We demonstrate the models and their benefits using data from a selection of species; and we run a full cross-validation of the GAMs against two other models to compare predictive fit. The GAMs have better predictive fit than the standard model for all species studied here, and comparable predictive fit to an alternative first difference model. In addition, one version of the GAM described here (GAMYE) estimates a population trajectory that can be decomposed into a smooth component and the annual fluctuations around that smooth. This decomposition allows trend estimates based only on the smooth component, which are more stable between years and are therefore particularly useful for trend-based status assessments, such as those by the International Union for the Conservation of Nature. It also allows for the easy customization of the model to incorporate covariates that influence the smooth component separately from those that influence annual fluctuations (e.g., climate cycles vs annual precipitation). For these reasons and more, this GAMYE model is a particularly useful model for the BBS-based status and trend estimates. This repository contains all of the code, models (JAGS), and facilities to download the raw BBS data. This work was conducted primarily on a Windows computer that had 148 GB of RAM and 64 processor cores, so users should adjust the calls to the foreach and doParallel packages to suite their local set-up. There are 3 main scripts that provided the analysis, 1 that produces the figures for the paper, and 1 that compares some alternative priors for the hyperparameters of the GAM. 1. script_kfold.R applies the four statistical models used to the BBS data for a selection of species, and then conducts a 15-fold crossvalidation for each model by species combination. 2. comparison_script.R applies an additional model to the crossvalidation results to account for the imbalanced sampling (in time and space) of the BBS. 3. comparison_summary.R further summarizes the results of the previous two scripts. 4. prior_comparisons_GAM.r applies the GAM using two alternative priors on the variance of the beta hyperparameters, demonstrating that the population inferences of the GAM are not dependent on this prior (added based on a suggestion by reviewers). 5. publication_figures.R draws on the output from the previous 4 scripts to produce the final figures for the publication, including the supplements. The paper will be published in Condor, and a preprint of the paper is available at: doi:

近期下载者

相关文件


收藏者