read_pof | R Documentation |
This function reads POF microdata.
read_pof(microdata, input_txt, vars = NULL)
microdata |
A text file containing microdata from POF survey, available on official website: (select a microdata file, according to the appropriated select the dictionary and input zip file, according to the appropriated year, microdata folder and then, inside, data) - https://ftp.ibge.gov.br/Orcamentos_Familiares/. |
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 select the dictionary and input zip file, according to the appropriated year, microdata folder and then, inside, documentation) - https://ftp.ibge.gov.br/Orcamentos_Familiares/. |
vars |
Vector of variable names to be kept for analysis. Default is to keep all variables. |
A tibble with selected variables of the microdata, including the necessary survey design ones.
For more information, visit the survey official website <https://www.ibge.gov.br/estatisticas/sociais/trabalho/9050-pesquisa-de-orcamentos-familiares.html?=&t=o-que-e> and consult the other functions of this package, described below.
get_pof for downloading, labeling, deflating and creating survey design object for POF microdata.
pof_labeller for labeling categorical variables from POF microdata.
pof_deflator for adding deflator variables to POF microdata.
pof_design for creating POF survey design object.
pof_example for getting the path of the POF toy example files.
input_path <- pof_example(path="input_example.txt") data_path <- pof_example(path="exampledata.txt") pof.df <- read_pof(microdata=data_path, input_txt=input_path, vars=c("V0407","V0408"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.