CODING FOR ECONOMIC APPLICATIONS
Updated A.Y. 2022-2023
OVERVIEW AND PREREQUISITES
This course provides an introduction to Stata and Python tools useful for economic applications. It is a lab course.
Intermediate tests will be proposed at the end of each class. Students having a positive evaluation on all the intermediate tests will earn a final 'pass' grade. A final oral exam is possible at the teacher's discretion for students with a negative evaluation on a maximum of 2 (out of 6) intermediate tests and non-attending students.
The lectures are introductory and are meant to introduce the sudents to the the following:
- Introduction to Stata;
- Data and datasets;
- Data management;
- Automating tables and graphs;
- Do file programming;
- Mata - the matrix programming language of Stata - basics and optimization tools.
- Python basic syntax;
- Python key strengths for web scraping;
- The most widely used tools and modules;
- Programming best practices (secondary).
TEXTBOOKS AND MATERIAL
The primary material consists of notes, Stata manuals, and Stata codes that will be posted in the material section.
Baum C.F., (2016), Introduction to Stata programming, 2nd ed., Stata press.
- A Detailed guide for webscraping and data analysis with BeautifulSoup (with Python
- Quick guide for web scraping with lxml and requests (http://python-guide-pt-br.readthedocs.io/en/latest/scenarios/scrape/)
- An open-source and collaborative framework for web scraping.