Course: SQL and PostGIS for health data
Teaching
Health
From CSV to map: data preparation, SQL, PostGIS, spatial analysis and QGIS, with real Brazilian health data.
A step-by-step course in eight modules, from raw public health data to maps in QGIS:
- Preparing the data in R
- Loading it into PostgreSQL (census-tract population, hospitals from the CNES registry)
- Basic SQL
- Joins, rates and window functions
- Views and materialized views
- PostGIS fundamentals (SRID, geometry and geography)
- Spatial analysis: nearest neighbor, hexagonal grids, clustering (DBSCAN), Moran’s I
- Layers ready for QGIS
Example results: - 82% of Rio de Janeiro state’s population lives within 5 km of a hospital; - Moran’s I for circulatory mortality by neighborhood is 0.54, and 0.27 for respiratory mortality.
The course materials are in Portuguese.
Back to top