A tibble with selected variables of the microdata, including the necessary survey design ones.
Arguments
microdata
A text file containing microdata from PNS survey, available on official website: (select a microdata file, according to the appropriated year, microdata folder and then, inside, data) - https://ftp.ibge.gov.br/PNS/.
input_txt
A text file, related to the microdata, containing the input script for SAS, available on official website: (select the dictionary and input zip file, according to the appropriated year, microdata folder and then, inside, documentation) - https://ftp.ibge.gov.br/PNS/.
vars
Vector of variable names to be kept for analysis. Default is to keep all variables.
See Also
get_pns for downloading, labeling, deflating and creating survey design object for PNS microdata. pns_labeller for labeling categorical variables from PNS microdata. pns_deflator for adding deflator variables to PNS microdata. pns_design for creating PNS survey design object. pns_example for getting the path of the PNS toy example files.