This document serves as an open code book detailing application of a multi-scale occupancy model
to bat acoustic data collected according to the North American Bat Monitoring Program (NABat)
sampling design. In this document, we detail a complete analysis of acoustic data collected on Hoary
bats in Montana between 2020 and 2022, including: examples of data cleaning and preparation for
analysis, model code required to fit the multi-scale occupancy model, convergence assessment of MCMC
routines, residual diagnostics, and ROC curves to evaluate model fit, and complete posterior summaries.
All code used in this document is freely available and is provided in an online repository to facilitate
future analyses.