Search for a command to run...
# Scripts for: Spatial analysis of Structural Exposure Index to Brucellosis (EEB) in Brazil (2014–2024) This repository contains R scripts for calculating the Structural Exposure Index to Brucellosis (EEB) and performing spatial cluster analysis (Global Moran's I and LISA) for Brazilian municipalities from 2014 to 2024. The scripts download livestock data from IBGE (Pesquisa da Pecuária Municipal – PPM), calculate the index, perform spatial statistics with **hybrid p-value correction (Bonferroni for High-High clusters, FDR for others)**, and generate manuscript-ready tables and figures. Raw livestock data are not included and must be obtained directly from IBGE SIDRA: https://sidra.ibge.gov.br/pesquisa/ppm ## Contents - `00_config.R` – Configuration of directories- `01_load_ibge_data.R` – Downloads livestock data from IBGE SIDRA API- `02_calcular_eeb.R` – Calculates the Structural Exposure Index to Brucellosis- `03_analise_espacial.R` – Performs Global Moran's I and LISA cluster analysis (includes hybrid p-value correction)- `04_gerar_figura1.R` – Generates map of EEB distribution- `05_gerar_figura2.R` – Generates LISA cluster map- `06_gerar_figura3.R` – Generates temporal trends graph- `07_gerar_tabelas.R` – Generates manuscript tables- `README.md` – Instructions and dependencies- `zenodo_metadata.json` – Metadata for Zenodo record ## Requirements - R version 4.0 or higher- Packages: tidyverse, sf, spdep, geobr, ggplot2, patchwork ## Citation If you use these scripts, please cite: Cabral Junior, C. R., Amorim, P. C., Araújo Filho, J. T., & Mariz, T. M. A. (2026). Scripts for: Spatial analysis of Structural Exposure Index to Brucellosis (EEB) in Brazil (2014–2024) (Version 2.0). Zenodo. https://doi.org/10.5281/zenodo.18850404 ## License Creative Commons Attribution 4.0 International ## Related manuscript These scripts accompany a scientific manuscript under review. The DOI will be updated upon publication.