This appendix contains the code for the paper "A Bayesian Record Linkage Approach to Tree Demography Using Overlapping LiDAR Scans".
The folders contained in this appendix are:
- 1_simulation_study
- 2_empirical_analysis
- 3_figures_and_tables
- resources
The folders and code within each folder are provided in the order they should be run. The resources folder contains supporting code (R, C++, STAN) and a placeholder folder for the empirical data used in this analysis. The empirical data can be obtained from the following ESS-DIVE repository and should be placed into the empirical_data folder within the resources folder (see the README file in that folder for additional details).
Empirical Data: https://data.ess-dive.lbl.gov/view/ess-dive-32482a38131d613-20240503T212244619
All analyses for this project were run on an HPC system using shell scripts, which an interested user should take advantage of for parallel computing.
The following is a list of packages and technologies that must be installed and where they can be found.
R version > 4.2.2
- ggplot2 (CRAN)
- dplyr (CRAN)
- tidyr (CRAN)
- readr (CRAN)
- data.table (CRAN)
- purrr (CRAN)
- patchwork (CRAN)
- terra (CRAN)
- sf (CRAN)
- Rcpp (CRAN)
- RcppArmadillo (CRAN)
- RcppDist (CRAN)
- xgboost (CRAN)
- dials (CRAN)
- parsnip (CRAN)
- recipes (CRAN)
- rsample (CRAN)
- tune (CRAN)
- workflows (CRAN)
- yardstick (CRAN)
- MASS (CRAN)
- Matrix (CRAN)
- tmvtnorm (CRAN)
- mvtnorm (CRAN)
- usedist (CRAN)
- doParallel (CRAN)
- codetools (CRAN)
- rstan (CRAN)
- loo (CRAN)
- knitr (CRAN)
- kableExtra (CRAN)
- stringr (CRAN)
- ggpubr (CRAN)
- latex2exp (CRAN)
- gtools (CRAN)
- mcclust (CRAN)