Updated A.Y. 2018-2019
The aim of this course is to acquaint students with the basics of Stata (and its use for applied economics), and the basics of Pyhton (to work on webscraping tasks). The course will be mostly focused on micro-econometrics. Topics to be covered in the first semester (Gagliarducci) include: dataset management, descriptive statistics, graphics, loops, linear regression, instrumental variable models (IV), panel data models, event-study analysis, regression discontinuity (RD). Topics to be covered in the second semester (Rovigatti) include: scraping standard websites, extracting usable information and storing it in machine-readable format.
Course prerequisites and material
Students are supposed to be attending, or have attended, the course of Statistics and Econometrics, and having some knowledge of the concepts of lists and websites. Knowledge of html and programming best practices could be a plus, while being able to manage comma separated files is a prerequisite. In each class, we will compile a code on the scheduled topic (see below).
PASS or FAIL. The final exam consists of a take-home assignment to be returned (via email) at least one week before the expected exam registration.
Suggested Text and Readings
- Stata documentation (any version)
- An Introduction to Modern Econometrics using Stata, C.F. Baum, 2006
- Statistics with Stata, by L.C. Hamilton, 2006
- Microeconometrics using Stata, by A.C. Cameron and P.K. Trivedi, 2009
- Mastering Metrics, by J. Angrist and S. Pischke, 2015
- An Introduction to Stata Programming, Christopher F. Baum, 2014
- Detailed guide for webscraping and data analysis with BeautifulSoup (with Python 3!):
All readings are available through the Biblioteca Vilfredo Pareto, located in the building B (http://economia.biblio.uniroma2.it/).
Additional material available at:
Course Web Page
All the material for this class (syllabus, do files, announcements) will be posted on the course webpage.
Some of the data used in class are available at: