Data Analysis Case Study codebase for R, Python and Stata
R, Python and Stata code for
Data Analysis for Business, Economics, and Policy
by Gábor Békés (CEU) and Gábor Kézdi (U. Michigan)
Published on 6 May 2021 by Cambridge University Press
gabors-data-analysis.com
How to use
On the textbook's website, we have detailed discussion of how to set up libraries, get data and code: Overview of data and code
To see options for various languages, check out:
- R -- How to run code in R
- Stata -- How to run code in Stata
- Python -- How to run code in Python
Status (25 November, 2022)
The Latest release, 0.8.3 "Ethics Gradient" was released on 25 November.
In the latest release we did some refactoring re Python and R codes. We continuously monitor bugs and do regular, if mostly minor updates.
Organization
- Each case study has a separate folder.
- Within case study folders, codes in different languages are simply stored together.
- Data should be downloaded and stored in a separate folder.
Code language versions
- R -- We used R 4.0.2.
- Stata -- We used version 15, allmost all code should work in version 13 up.
- Python -- We used Python 3.8.0.
Get data
Data is hosted on OSF.io
Found an error or have a suggestion?
Awesome, we know there are errors and bugs. Or just much better ways to do a procedure.
To make a suggestion, please open a github issue
here with a title containing the case study name. You may also contact us directctly. Cheers!