Learn R Programming

datazoom.social (version 0.1.0)

build_pnadc_panel: Build PNADc Panel

Description

This function builds a panel dataset from PNADC data, identifying households and individuals

Usage

build_pnadc_panel(dat, panel)

Value

A modified dataset with added identifiers for household (id_dom) and individual (id_ind or id_rs) based on the chosen panel algorithm.

Arguments

dat

Data frame with PNADC data, sorted into a single panel.

panel

A character with the type of panel identification. Use "none" for no paneling, "basic" for basic paneling, and "advanced" for advanced paneling.

Examples

Run this code
if (FALSE) { # interactive()
# Example usage:

panel_data <- build_pnadc_panel(dat = pnad_sample, panel = "basic")
}

Run the code above in your browser using DataLab