PNADCperiods

CRAN status CRAN downloads R-CMD-check pkgdown codecov Lifecycle: experimental License: MIT

Convert Brazil’s quarterly PNADC survey data into sub-quarterly time series (monthly, fortnightly, weekly) and mensalize IBGE SIDRA aggregate series.

Installation

Install the released version from CRAN:

install.packages("PNADCperiods")

Or the development version from GitHub:

# install.packages("remotes")
remotes::install_github("antrologos/PNADCperiods")

Main Features

Interactive Dashboard

Explore 86+ official PNADC series with an interactive dashboard – no R required:

https://antrologos.shinyapps.io/PNADCperiods-dashboard/

The dashboard is built on top of this package and lets you visualize mensalized series, compare strategies, and download monthly time-series as CSV.

Basic Usage

Microdata Mensalization

library(PNADCperiods)

# Build crosswalk identifying reference periods
crosswalk <- pnadc_identify_periods(pnadc_stacked)

# Apply to data with weight calibration
result <- pnadc_apply_periods(pnadc, crosswalk, weight_var = "V1028", anchor = "quarter")

SIDRA Series Mensalization

# Fetch rolling quarterly data from SIDRA
rolling <- fetch_sidra_rolling_quarters(theme = "labor_market")

# Convert to exact monthly series
monthly <- mensalize_sidra_series(rolling)

Key Functions

Microdata

Function Description
pnadc_identify_periods() Build crosswalk: identify months/fortnights/weeks
pnadc_apply_periods() Apply crosswalk + calibrate weights
pnadc_experimental_periods() Boost rates with probabilistic strategies
validate_pnadc() Validate input columns

SIDRA Series

Function Description
get_sidra_series_metadata() List 86+ available PNADC series
fetch_sidra_rolling_quarters() Download rolling quarter data from SIDRA
mensalize_sidra_series() Convert rolling quarters to exact monthly
fetch_monthly_population() Fetch population totals from SIDRA

Documentation

Authors

Credits

Original PNADC data is collected by the Brazilian Institute of Geography and Statistics (IBGE). The mensalization methodology was developed by Marcos Hecksher (Ipea) — see Hecksher (2020, IPEA Nota Tecnica Disoc n. 62 and n. 87; Carta de Conjuntura v. 47). The R package, interactive dashboard, and documentation website were developed by Rogerio J. Barbosa at the Center for the Study of Wealth and Social Stratification (Ceres - IESP/UERJ).

Citation:

Barbosa, Rogerio J; Hecksher, Marcos. (2026). PNADCperiods: Identify Reference Periods in Brazil’s PNADC Survey Data. R package version 0.1.1. https://CRAN.R-project.org/package=PNADCperiods

citation("PNADCperiods")

Getting Help

License

MIT