Identifies reference periods (months, fortnights, and weeks) in Brazil's quarterly PNADC (Pesquisa Nacional por Amostra de Domicilios Continua) survey data and computes calibrated weights for sub-quarterly analysis. The core algorithm uses IBGE (Instituto Brasileiro de Geografia e Estatistica) 'Parada Tecnica' (technical break) rules combined with respondent birthdates to determine which temporal period each survey observation refers to. Period identification follows a nested hierarchy enforced by construction: fortnights require months, weeks require fortnights. Achieves approximately 97% monthly determination rate with the full series (2012-2025). Strict fortnight and week rates are approximately 9% and 3% respectively, as they cannot leverage cross-quarter panel aggregation. Experimental strategies (probabilistic assignment and UPA (Primary Sampling Unit) aggregation) further improve these determination rates. The package provides adaptive hierarchical weight calibration (4/2/1 cell levels for month/fortnight/week) with period-specific smoothing to produce survey weights calibrated to SIDRA (Sistema IBGE de Recuperacao Automatica) population totals. Also includes a SIDRA mensalization module that converts 86+ official rolling quarter series from the IBGE SIDRA API (Application Programming Interface) into exact monthly estimates, without requiring access to microdata. Hecksher (2020) <https://repositorio.ipea.gov.br/handle/11058/9859>.
Package details |
|
|---|---|
| Author | Rogerio Barbosa [aut, cre] (ORCID: <https://orcid.org/0000-0002-6796-4547>, contribution: R package, dashboard, and website), Marcos Hecksher [aut] (ORCID: <https://orcid.org/0000-0003-2992-1252>, contribution: Mensalization methodology) |
| Maintainer | Rogerio Barbosa <rogerio.barbosa@iesp.uerj.br> |
| License | MIT + file LICENSE |
| Version | 0.1.2 |
| URL | https://antrologos.github.io/PNADCperiods/ https://github.com/antrologos/PNADCperiods |
| Package repository | View on CRAN |
| Installation |
Install the latest version of this package by entering the following in R:
|
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.