Published June 18, 2025 | Version v2
Computational notebook Open

Code associated to 'Large-scale informative priors to better predict the local occurrence rate of a rare tree-related microhabitat'

  • 1. ROR icon Institut National de Recherche pour l'Agriculture, l'Alimentation et l'Environnement

Description

This archive presents codes and functions in R programming language that were used in "Using informative priors to better quantify the occurrence rate of a rare tree-related microhabitat locally" by P. Cottais et al. (doi : 10.1101/2024.11.28.625900). The archive is made of seven files :

  • RepriseFL_vPub_R1.rmd is a RMarkdown file that presents the global pipeline of analyses used in the study of P. Cottais et al.;
  • RepriseFL_vPub_R1.pdf is a compiled version of Main.rmd in a more readable pdf format;
  • ggplots.R is a R source file containing functions to generate some graphical outputs, it is called by Main.rmd;
  • chains_process.R is a R source file containing custom-made functions to handle MCMC outputs , it is called by Main.rmd;
  • Weibull_Hierarchic_11A_Rot.Hole_Chains.txt is a text file containing the MCMC output of Courbaud et al (2022) continental model, used in building informative priors in the study of P. Cottais et al. , , it is read by Main.rmd;
  • model_nonInfo_vPub_R1.r is a R source file creating functions to run bayesian estimation with non informative priors; 
  • model_Info_vPub_R1.r is a R source file creating functions to run bayesian estimation with informative priors.

The tree census data used in the code has been provided as a separate repository : 10.5281/zenodo.14231133

Files

RepriseFL_vPub_R1.pdf

Files (13.3 MB)

Name Size Download all
md5:1c5f93185d73fb304d8d82a57cc69d54
3.1 kB Download
md5:e1ff9fad88769095e600c4ea954cfe69
45.9 kB Download
md5:b1ff6dd81c81c8f155d271cb05325cbb
3.0 kB Download
md5:5b9bb61883db4403f9d873152589c5e5
3.6 kB Download
md5:40e6335b7d975db0d8efd0e93a1a801e
1.7 MB Preview Download
md5:aae56699795abd780809ee81c678cb37
48.8 kB Download
md5:1df866aa6719dc026a88d12cfade8ed4
11.4 MB Preview Download

Additional details

Related works

Cites
Publication: 10.1111/1365-2664.14068 (DOI)
Is cited by
Publication: 10.1101/2024.11.28.625900 (DOI)
Requires
Dataset: 10.5281/zenodo.14231133 (DOI)

Funding

Agence Nationale de la Recherche
BloBiForM - Block neutral models to predict the response of Biodiversity in dendromicrohabitats to Forest Management ANR-19-CE32-0002

Software

Programming language
R