An R package for obtaining data, diagnosis, forecasting, and spatio-temporal analysis of climate, environmental, and health data, focusing on Brazilian public health.
# Install the package
remotes::install_github(
"ByMaxAnjos/climasus4r")
# Load the package
library(climasus4r)
# Import health data from DATASUS
df_analise <-
sus_data_import(
uf = "SP",
year = 2023,
system = "SIM-DO")
climasus4r is a scientific platform in R for obtaining, integrating, standardizing, and analyzing health, climate, and environmental data in Brazil, with a focus on bioclimatic forecasting. Developed within the scope of INCT Conexão and the Center for Climate and Health of Rondônia (CCSRO–Fiocruz), the package automates the entire epidemiological workflow — from data acquisition from DATASUS to the generation of time series ready for climate modeling and health surveillance.
# Reproductible Analitical Pipelines
df_rap <- sus_data_import() %>%
sus_data_clean_encoding() %>%
sus_data_standardize() %>%
sus_data_filter_cid() %>%
sus_create_variables() %>%
sus_data_filter_demographics() %>%
sus_data_aggregate()
From raw data to intelligence for public health policies.
Parallel acquisition, cleaning, multilingual standardization, filtering by ICD-10, creation of epidemiological variables, flexible temporal aggregation, quality reports, and export with metadata ready for scientific analysis.
Spatial linking of geographical boundaries, integration of IBGE data (population, GDP, HDI), matching of census tracts, and population-weighted spatial operations for analyzing health inequalities.
Import of meteorological data (INMET, FIORES, INCT-CONEXÃO), air quality (INPE, CETESB), satellite data (MODIS, Sentinel), and climate exposure matching algorithms.
Bayesian spatial models, cluster detection (SaTScan, Kulldorff), local indicators of spatial autocorrelation (LISA), spatial regressions, and relative risk models for hospitalizations and mortality associated with climate.
Distributed lag non-linear models (DLNM), attributable fraction, time series decomposition, machine learning, and bioclimatic prognosis based on weather forecasts and climate scenarios.
Access the full documentation in your language or use the AI assistant to get instant answers.
Complete documentation, tutorials, and references in Brazilian Portuguese.
Full documentation, tutorials and function reference in English.
Complete documentation, tutorials, and function reference in Spanish.
Chat with an AI specialist trained on the climasus4r package. Ask questions, get examples, and explore the package.
Developed by experts dedicated to the intersection of climate and public health.
Fundação Oswaldo Cruz Rondônia (FIOCRUZ-RO / CCSRO)
Universidade Federal de Rondônia -UFRO / Centro Interdepartamental do Biologia Experimental e Biotecnologia - CIBEBI
Transform climate and health data into intelligence for public policies.