This chapter is a reference appendix for the file-backed datasets shipped with the book repository. Earlier chapters link here instead of re-describing the source each time. Synthetic datasets generated inside code chunks are not listed here; they are documented where they appear.
17.1 FRED-QD
FRED-QD is the quarterly U.S. macroeconomic database developed by McCracken and Ng (2020). A local copy of the current release is stored at data/fred_qd_current.csv.
Unit of observation: calendar quarter
Coverage: U.S. macro-financial series, 1959Q1 onward
Frequency: quarterly
File layout: the CSV contains two metadata rows before the actual data. The first row stores factor-group identifiers and the second row stores the authors’ suggested transformation codes. The sasdate column holds the end-of-quarter date.
The chapters in the book use the subset of series listed below. Full variable documentation is available in the FRED-QD release notes.
Mnemonic
Description
GDPC1
Real gross domestic product, chained dollars
CPIAUCSL
Consumer price index, all urban consumers
UNRATE
Civilian unemployment rate
FEDFUNDS
Effective federal funds rate
GS10
10-year Treasury constant-maturity yield
TB3MS
3-month Treasury bill secondary-market rate
VIXCLSx
CBOE volatility index (VIX), quarterly closing value
Figure 17.1 shows the series used in the book on a common standardized scale so that their timing can be compared across the sample. Magnitudes are not directly comparable on this scale.
Figure 17.1: Selected FRED-QD series used in the book, standardized to mean zero and variance one. Real GDP growth is the annualized log difference of GDPC1; inflation is the annualized log difference of CPIAUCSL; the remaining series are shown as levels, with the term spread constructed as GS10 - TB3MS and log VIX as log(VIXCLSx).
The snippet below is the canonical way to load FRED-QD in this book. It skips the two metadata rows, parses sasdate as a date, and coerces the remaining columns to numeric.
The authors’ transformation codes in the second metadata row are not applied here. Individual chapters construct the transformations they need directly from the raw levels so that the forecast origin and information set are explicit.
17.2 References
McCracken, Michael W., and Serena Ng. 2020. “FRED-QD: A Quarterly Database for Macroeconomic Research.” Working Paper 26872. National Bureau of Economic Research.