powered by
This function builds a panel dataset from PNADC data, identifying households and individuals
build_pnadc_panel(dat, panel)
A modified dataset with added identifiers for household (id_dom) and individual (id_ind or id_rs) based on the chosen panel algorithm.
id_dom
id_ind
id_rs
Data frame with PNADC data, sorted into a single panel.
A character with the type of panel identification. Use "none" for no paneling, "basic" for basic paneling, and "advanced" for advanced paneling.
character
if (FALSE) { # interactive() # Example usage: panel_data <- build_pnadc_panel(dat = pnad_sample, panel = "basic") }
Run the code above in your browser using DataLab