Package: PNADCperiods 0.1.2

Rogerio Barbosa
PNADCperiods: Identify Reference Periods in Brazil's PNADC Survey Data
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 and Barbosa (2026) <https://osf.io/preprints/socarxiv/fra5u_v1>.
Authors:
PNADCperiods_0.1.2.tar.gz
PNADCperiods_0.1.2.zip(r-4.7)PNADCperiods_0.1.2.zip(r-4.6)PNADCperiods_0.1.2.zip(r-4.5)
PNADCperiods_0.1.2.tgz(r-4.6-any)PNADCperiods_0.1.2.tgz(r-4.5-any)
PNADCperiods_0.1.2.tar.gz(r-4.7-any)PNADCperiods_0.1.2.tar.gz(r-4.6-any)
PNADCperiods_0.1.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
PNADCperiods/json (API)
| # Install 'PNADCperiods' in R: |
| install.packages('PNADCperiods', repos = c('https://antrologos.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/antrologos/pnadcperiods/issues
Pkgdown/docs site:https://antrologos.github.io
- pnadc_series_starting_points - Starting Points for SIDRA Series Mensalization
Last updated from:34d35ba3df. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 255 | ||
| source / vignettes | OK | 226 | ||
| linux-release-x86_64 | OK | 236 | ||
| macos-release-arm64 | OK | 182 | ||
| macos-oldrel-arm64 | OK | 200 | ||
| windows-devel | OK | 185 | ||
| windows-release | OK | 177 | ||
| windows-oldrel | OK | 171 | ||
| wasm-release | OK | 156 |
Exports:clear_sidra_cachecompute_series_starting_pointscompute_starting_points_from_microdatacompute_z_aggregatesfetch_monthly_populationfetch_sidra_rolling_quartersget_sidra_series_metadatamensalize_sidra_seriespnadc_apply_periodspnadc_experimental_periodspnadc_identify_periodsvalidate_pnadc
Dependencies:askpassbackportscheckmateclicpp11curldata.tablegenericsgluehttrjsonlitelifecyclelubridatemagrittrmimeopensslpillarpkgconfigR6rjsonrlangrvestselectrsidrarstringistringrsystibbletimechangeutf8vctrsxml2
Last update: 2026-05-04
Started: 2026-01-09
Last update: 2026-05-04
Started: 2026-01-14
Last update: 2026-05-04
Started: 2026-01-11
Last update: 2026-05-04
Started: 2026-02-04
Last update: 2026-05-04
Started: 2026-01-07
Last update: 2026-05-04
Started: 2026-01-13
Last update: 2026-05-04
Started: 2026-01-14
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Clear All SIDRA Caches | clear_sidra_cache |
| Compute Starting Points from Microdata | compute_series_starting_points |
| Compute Starting Points from Raw PNADC Microdata | compute_starting_points_from_microdata |
| Compute z_ Aggregates from Monthly Microdata | compute_z_aggregates |
| Fetch Monthly Population from SIDRA | fetch_monthly_population |
| Fetch Rolling Quarter Series from SIDRA | fetch_sidra_rolling_quarters |
| Get SIDRA Series Metadata | get_sidra_series_metadata |
| Convert Rolling Quarters to Exact Monthly Series | mensalize_sidra_series |
| Apply Reference Period Crosswalk to PNADC Data | pnadc_apply_periods |
| Experimental Period Identification Strategies | pnadc_experimental_periods |
| Identify Reference Periods in PNADC Data | pnadc_identify_periods |
| Starting Points for SIDRA Series Mensalization | pnadc_series_starting_points |
| Validate PNADC Input Data | validate_pnadc |