Useful Codes and Datasets

Do-files for reading PISA 2012 raw files in Stata This repository contains Stata do-files to read PISA 2012 raw files and an R script for automating do-file creation.

Geocoding Addresses with tidygeocoder and Google Maps An example of geocoding addresses with tidygeocoder in R and by web scraping Google Maps using Selenium in Python.

Correios web scraping code to get addresses from zip codes A code from scraping Correios (Brazilian public post office) website to extract complete address information from Correios website.

Datasets

Educational Performance Rates per municipality from INEP (1996-2005 and 2007-2022) (In portuguese) Dataset of performance rates (approval, failure and dropout rates of students) per municipality in Brazil, from 1999 to 2005 and from 2007 to 2022. Obtained via Freedom of Information Law.

Brazil’s CCTs by municipality A dataset with the value and number of beneficiaries by municipality, month and program of all Brazil’s Conditional Cash Transfers, from January 2013 to December 2024.