Sunteți pe pagina 1din 2

Natural Resources and Local Communities:

Evidence from a Peruvian Gold Mine


Fernando Aragon and Juan Pablo Rud

-DATA APPENDIX -

The data appendix contains the final datasets and the code necessary to replicate the main
results in the paper and online appendix. In addition, it includes the code and ancillary
datasets necessary to construct the datasets from the raw data

A. To replicate the tables and figures in the paper:

1. Open folder “main_results”


2. Execute do file “tables_paper.do”
3. DO file will use dataset “data_person_4.dta”

B. To replicate the tables and figures in the on-line appendix:

1. Open folder “main_results”


2. Execute do file “tables_online_appendix.do”
3. DO file will use dataset “data_person_4.dta” and “data_person_all.dta”

C. To create datasets “data_person_4.dta” and “data_person_all.dta” from the raw data.

1. Open folder raw_data

2. Download the “ENAHO Condiciones de Vida y Pobreza” data for years 1997
to 2006. When available, be sure to download annual data. The data is
available online at http://www.inei.gob.pe/srienaho/enaho197.htm.
Unfortunately, all the data and documentation are in Spanish. You need only
to download the following modules:

a. Module 1: Caracteristicas de la vivienda y del hogar


b. Module 2: Caracteristicas de los miembros del hogar
c. Module 3: Educacion
d. Module 4: Salud
e. Module 5: Empleo e ingresos
f. Module 7: Gastos en alimentos y bebidas
g. Module 22: Produccion Agricola
h. Module 34: Sumarias
i. Module 62: Seguridad y violencia – Modulo de opinion (year 2000)
j. Module 68: Perception del hogar – Modulo de opinion (year 2001)

  1  
k. Module 85: Gobernabilidad, Democracia y Transparencia (years 2002-
2006)

3. Create folder “data_ENAHO” within folder “raw_data”

4. Unzip files and organize them in folders according to their module in the
following way (all these folder must be within folder “data_ENAHO”) :

Folder name Files


module100 EnahoXX-XXXXX-100.sav
module200 EnahoXX-XXXXX-200.sav
module300 EnahoXX-XXXXX-300.sav
module400 EnahoXX-XXXXX-400.sav
module500 EnahoXX-XXXXX-500.sav
module601 EnahoXX-XXXXX-601.sav
module2100 EnahoXX-XXXXX-2100.sav
sumarias Sumaria-XXXX.sav
moduleopinion For year 2000: Enaho.01B-2000IV-Opinion.sav (from module 62)
For year 2001: Enaho.01B-2001IV.sav (from module 68)
For year 2002: Enaho.01 –2002IV–1.sav (from module 85)
For years 2003-2006: Enaho01B-XXXX-3.sav (from module 85)

5. Convert files to STATA, and rename them according to their year i.e.
1997.dta, 1998.dta, etc. Two exceptions for year 1997 only: in module300 and
module500 use filenames “1997_original.dta” instead of “1997.dta”.

6. Execute DO file “creator_dataset.do”. Be sure to specify the folder path for


“raw_data” and “data_ENAHO” at the beginning of the file.

Folder description

• Main_results: include final datasets and code to replicate results in paper and on-
line appendix
• Raw_data: contains code and ancillary data to construct datasets from raw data
• Data_other: contains ancillary datasets. For further details on data sources read
the associated README file.

  2  

S-ar putea să vă placă și