This repository contains the code and data accompanying the paper "u* = √uv", written by Pascal Michaillat and Emmanuel Saez, and posted on arXiv in June 2022.
The paper is available at https://pascalmichaillat.org/13/.
The data used as input to produce the results in the paper are stored in the Excel file data.xlsx
, which is placed in the folder code
.
The results in the paper are produced with MATLAB code. The code is placed in the folder code
. There are two types of programs:
- MATLAB scripts producing the figures in the paper
- MATLAB helper scripts and functions called by the figure-producing scripts
The figures in the paper are produced by the following scripts:
figure1A.m
– Produce figure 1Afigure1B.m
– Produce figure 1Bfigure3A.m
– Produce figure 3Afigure3B.m
– Produce figure 3Bfigure4A.m
– Produce figure 4Afigure4B.m
– Produce figure 4Bfigure5.m
– Produce figure 5figure6A.m
– Produce figure 6Afigure6B.m
– Produce figure 6Bfigure7A.m
– Produce figure 7Afigure7B.m
– Produce figure 7Bfigure8.m
– Produce figure 8figure9A.m
– Produce figure 9Afigure9B.m
– Produce figure 9Bfigure10A.m
– Produce figure 10Afigure10B.m
– Produce figure 10Bfigure11A.m
– Produce figure 11Afigure11B.m
– Produce figure 11Bfigure12A.m
– Produce figure 12Afigure12B.m
– Produce figure 12Bfigure12C.m
– Produce figure 12C
Each script produces a figure in a MATLAB window, saves a copy of the figure in PDF format, and saves a copy of the data plotted in the figure in an Excel file.
Figure 2 is directly borrowed from Michaillat and Saez (2021, figure 5), so there is no script to produce it.
The figure-producing scripts call the following helper scripts:
formatStandardPlot.m
– Format standard plotsformatScatterPlot.m
– Format scatter plotsformatLongPlot.m
– Format long plots
The figure-producing scripts also call the following functions:
getRecession.m
– Return dates of US recessions between 1930Q1 and 2022Q1getRecessionDepression.m
– Return dates of US recessions between 1930Q1 and 1950Q4getRecessionPostwar.m
– Return dates of US recessions between 1951Q1 and 2019Q4getRecessionPandemic.m
– Return dates of US recessions between 2020M1 and 2022M3getTimeline.m
– Return quarterly timeline for 1930Q1–2022Q1getTimelineDepression.m
– Return quarterly timeline for 1930Q1–1950Q4getTimelinePostwar.m
– Return quarterly timeline for 1951Q1–2019Q4getTimelinePandemic.m
– Return monthly timeline for 2020M1–2022M3getTimelineJolts.m
– Return monthly timeline for 2001M1–2022M3getUnemployment.m
– Return quarterly US unemployment rate, 1930Q1–2022Q1getUnemploymentDepression.m
– Return quarterly US unemployment rate, 1930Q1–1950Q4getUnemploymentPostwar.m
– Return quarterly US unemployment rate, 1951Q1–2019Q4getUnemploymentPandemic.m
– Return monthly US unemployment rate, 2020M1–2022M3getUnemploymentJolts.m
– Return monthly US unemployment rate, 2001M1–2022M3getUnemploymentMS21.m
– Return the efficient unemployment rate by Michaillat and Saez (2021)getVacancyRate.m
– Return quarterly US vacancy rate, 1930Q1–2022Q1getVacancyRateDepression.m
– Return quarterly US vacancy rate, 1930Q1–1950Q4getVacancyRatePostwar.m
– Return quarterly US vacancy rate, 1951Q1–2019Q4getVacancyRatePandemic.m
– Return monthly US vacancy rate, 2020M1–2022M3getVacancyRateJolts.m
– Return monthly US vacancy rate, 2001M1–2022M3monthlyToQuarterly.m
– Aggregate monthly data to quarterly frequency
The 21 figures produced by the code are stored both as PDF files and as Excel files. The figures are placed in the folder figures
.
The figures are saved as PDF files and stored in the subfolder pdf
. Any PDF file titled figureX.pdf
corresponds to figure X in the paper.
The data underlying the figures are saved as Excel files and stored in the subfolder xlsx
. Any Excel file titled figureX.xlsx
contains the data plotted in figure X in the paper.
The results were obtained on a Mac running macOS Ventura 13.2 with MATLAB R2022b and Microsoft Excel 16.71.
The content of this repository is licensed under the terms of the MIT License.