Raphael Gouvêa, "Large Devaluations and Inflation Inequality: Replicating Cravino and Levchenko (2017) with Evidence from Brazil", Journal of Applied Econometrics, Vol. 37, No. 3, 2022, pp. 657-664. The file rg-files.zip provides all codes and public data used in the paper. This paper also uses proprietary data from FIPE, a nonprofit organization affiliated to the Economics Department of the University of São Paulo (USP) (https://www.fipe.org.br/en-us/home). To access the data from the Consumer Price Index produced by FIPE, I sent an email to the president of the organization and professor at USP, Prof. Dr. Carlos Antonio Luque (cluque@usp.br), who put me in contact with the coordinator of the team producing the CPI. Access to the data was granted only for academic purposes and under a non-disclosure agreement. Even though I cannot deposit the FIPE data in an openly accessible data repository, the replication package provides all codes used to manipulate the data and run the empirical estimations. The replication package is structured in the following way. R scripts are saved in the ./codes folder and its subfolders. Raw data is stored on the ./data/raw folder. Tables and Figures are saved under the folder ./figures_and_tables, which also contains a Rmd files to reproduce the Tables and Figures of the paper in a pdf file. How to run the codes: 1. run_All_scripts.R: R script that runs all R scripts in the correct order to download, process and analyze all datasets. Codes Description: ./codes/download/ download_ipca.R: R script to download CPI data from IBGE (IPCA) download_ipca_classifications.R: R script to download correspondence tables of CPI from IBGE download_macrodata.R: R script to download other macro economic data obtained from the Central Bank, BIS and IPEA download_pof.R: R script to download consumer expenditure survey (POF) data from IBGE ./codes/process/ibge create_ipca_price_indices.R: R script to create IPCA price indices from raw data create_pof2002_with_ipca_codes.R: R script to match IPCA codes to POF 2002 create_pof2008_with_ipca_codes.R: R script to match IPCA codes to POF 2008 create_weights_pof_2002.R: R script to compute expenditure weights of IPCA using POF 2002 create_weights_pof_2008.R: R script to compute expenditure weights of IPCA using POF 2008 create_weights_pof_2002_region.R: R script to compute region specific expenditure weights of IPCA using POF 2002 ./codes/process/fipe create_fipe_correspondences.R: R script to read and create IPC-Fipe correspondence table create_ipcfipe.R: R script to create IPC-Fipe price indices from raw data create_pof_fipe.R: R script to read and clean the consumer expenditure survey (POF) from FIPE create_weights_fipe.R: R script to compute expenditure weights of IPC-Fipe using FIPE POF 1998 create_varieties_prices_complete.R: R script to read and clean price quotes of IPC-Fipe create_cheap_expensive_indicator_complete.R: R script to create expansive vs cheap varieties indicators create_varieties_prices.R: R script to read and clean price quotes for varieties quoted in a specific measurement unit of IPC-Fipe create_cheap_expensive_indicator.R: R script to create expansive vs cheap varieties indicators for varieties quoted in a specific measurement unit ./codes/analysis plot_dev2002.R: R script that produces Figure 1 -- Panel A plot_engle.R: R script that produces Figure 1 -- Panel B across_ibge_2002_weights.R: R script that produces Table 1 across_fipe.R: R script that produces Table 1 within_changes_complete.R: R script that produces Table 2 an Figure D.3 combined_complete.R: R script that produces Table 3 an Figure D.4 plot_ipca_vs_ipcfipe.R: R script that produces Figure A.1 descriptive_income_shares.R: R script that produces Table B.1 unit_prices_reg.R: R script that produces Table C.1 plot_across_timeseries.R: R script that produces Figure D.1 plot_across_household.R: R script that produces Figure D.2 across_ibge_2002_weights_byregion.R: R script that produces Table E1 across_ibge_2008_weights.R: R script that produces Table E.2 within_changes.R: R script that produces Table F.1 and Figure F.1 combined.R: R script that produces Table F.2 and Figure F.2 ./codes/figures_and_tables figures_and_tables.Rmd: Rmarkdown file that produces the published version of figures and tables of the paper online_appendix.Rmd: Rmarkdown file that produces the published version of figures and tables of the online appendix Raphael R. Gouvêa, PhD / Researcher Institute for Applied Economic Research (Ipea) -- Brazil https://www.raphaelgouvea.com/