Giter Site home page Giter Site logo

peter-mccrory / high-freq-sah-ui-restat Goto Github PK

View Code? Open in Web Editor NEW
0.0 5.0 0.0 15.89 MB

Data Archive for "Unemployment Effects of Stay-at-Home Orders: Evidence from High Frequency Claims Data" by ChaeWon Baek, Peter B. McCrory, Todd Messer, and Preston Mui

Stata 20.03% TeX 4.76% AMPL 6.23% Jupyter Notebook 68.99%

high-freq-sah-ui-restat's Introduction

Data Archive for "Unemployment Effects of Stay-at-Home Orders: Evidence from High Frequency Claims Data"

By ChaeWon Baek, Peter B. McCrory, Todd Messer, and Preston Mui

Intro

This repository contains all the data and code required to replicate the analysis in "Unemployment Effects of Stay-at-Home Orders: Evidence from High Frequency Claims Data".

The repository is organized as follows:

  • ./data/: Contains the raw data as well as the compiled Stata datasets used in the analysis. A description of each raw data file follows below.
  • ./src/: All the code necessary to do the analysis is contained in this folder. There are three sub-directories for each of the languages used. A description of each file is contained below. The empirical analysis is done in Stata, the theoretical analysis is done in Matlab, and some of the figures are created in a Jupyter notebook using a Python 3 kernel.
  • ./output/: This folder contains the plots and tables appearing in the paper. Running the code (in the order described below) will reproduce all analysis from the paper (main-text and appendix).

The root directory also contains a .gitignore file for ignoring files for the Github repository (this repository is hosted at: https://github.com/peter-mccrory/high-freq-sah-ui-restat).

All scripts were verified to work with the following software: (i) Stata 14, (ii) Python 3.8.3 installed with Anaconda, and (iii) Matlab 2020b.

Steps for Replicating Analysis in Paper

To replicate the analysis in Baek, McCrory, Messer, Mui (2020) do the following:

  • Main Empirics: From within the ./src/stata/ directory, run run_all.do in Stata. This will call on the following do files contained in the ./src/stata/ directory, briefly described below. Each step can be run separately from run_all.do.
    • step1_build_state: This file imports all underlying data files in the data directory needed for the state-level analysis. Intermediate files are saved in ./data/stata/
    • step2_build_county: This file imports all underlying data files in the data directory needed for the county-level analysis. Intermediate files are saved in ./data/stata/
    • step3_merge_state: This file merges together the state-level datasets to produce the main state-build dataset, ./data/stata/state_build.dta
    • step4_merge_county: This file merges together the county-level datasets to produce the main state-build dataset, ./data/stata/state_build.dta
    • step5_analysis_main: This file estimates state-level regressions and saves all regression tables appearing in the main text and online appendix to
    • step6_analysis_county: This file estimates the county-level regressions underlying Tables 3 and 4 in the main text, saving those tables to ./output/tables/.
    • step7_eventstudies: This file estimates event study regressions described in the online appendix, saving the figures in the online appendix to ./output/plots/.
    • step8_early_late_figure: This file creates Figure 3 in the main text, saving it to ./output/plots/
    • step9_rel-implied-agg: This file calculates the relative-implied aggregate employment loss attributable to SAH orders.
  • Theoretical Results: From the command line Matlab and while located in the ./src/matlab/ directory, using Dynare, run baseline.mod with the command dynare baseline. This will create and save Figure 5 to ./output/plots/. It will also calculate and report numbers appearing in Table 2 of the main text.
  • Additional Figures: To make all remaining figures in the paper (main text and online appendix), run ./src/python/QCEW.ipynb in a Jupyter notebook (Python 3 kernel). This will create and save figures to ./output/plots/. Note: the user will need to install plotly-related packages to their conda distribution; if these are not already installed, an error will be produced prompting them to install the appropriate package (e.g. cufflinks, plotly-orca).

Brief Description of ./data/ Directory Files


The data used in the analysis is organized by source. Each source has its own separate folder, each of which is described in brief below:

high-freq-sah-ui-restat's People

Contributors

peter-mccrory avatar

Watchers

Preston Mui avatar  avatar  avatar Todd Messer avatar Bamogo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.