pof_deflator | R Documentation |
This function adds deflator variables to POF microdata. For deflation of income variables, the documentation provided through the following address must be used: (see the file 'POFIBGE_Deflator.pdf' at the general documentation folder) - https://ftp.ibge.gov.br/Orcamentos_Familiares/.
pof_deflator(data_pof, deflator.file)
data_pof |
A tibble of POF microdata read with |
deflator.file |
The deflator file for selected survey available on official website: (select the deflator zip file at the general documentation folder) - https://ftp.ibge.gov.br/Orcamentos_Familiares/. |
A tibble with the data provided from POF survey and the deflator variables added for use.
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.
read_pof for reading POF microdata.
pof_labeller for labeling categorical variables from POF microdata.
pof_design for creating POF survey design object.
pof_example for getting the path of the POF toy example files.
# Using data read from disk input_path <- pof_example(path="input_example.txt") data_path <- pof_example(path="exampledata.txt") dictionary.path <- pof_example(path="dictionaryexample.xls") deflator.path <- pof_example(path="deflatorexample.xls") pof.df <- read_pof(microdata=data_path, input_txt=input_path, vars=c("V0407","V0408")) pof.df <- pof_labeller(data_pof=pof.df, dictionary.file=dictionary.path) pof.df <- pof_deflator(data_pof=pof.df, deflator.file=deflator.path) # Downloading data pof.df2 <- get_pof(year=2017, selected=FALSE, anthropometry=FALSE, vars=c("V0407","V0408"), labels=TRUE, deflator=FALSE, design=FALSE, savedir=tempdir()) deflator.path2 <- pof_example(path="deflatorexample.xls") pof.df2 <- pof_deflator(data_pof=pof.df2, deflator.file=deflator.path2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.