General-Purpose Scripts for BPEA Paper “Measuring the Labor Market at the Onset of the COVID-19 Crisis”

Functions

Script Description
0_directory.R Directory structure of the project folder. All other R scripts source this script.
f_readhb.R Function that reads in raw Homebase data, improves geo variables, and subsets based on certain conditions.
f_wk.R Helper functions that find current week, the n-th day of a given week, and the number of days in a given week.
f_ratio.R Helper functions that calculate the ratio of selected variables by other selected variables relative to baseline.