econdata 0.1.0
  • Reference
  • Articles
    • Bernanke, Boivin, and Eliasz (2005)
    • Stock and Watson (2001)
  • News

Stock and Watson (2001)

Source: vignettes/replication-sw2001.Rmd
replication-sw2001.Rmd
library(econdata)
library(ggplot2)
library(tidyr)

fc_labels <-
  c(
    "infl" = "Inflation (Annualized QoQ, %)",
    "un" = "Unemployment (%)",
    "ff" = "Policy rate (%)"
  )

gather(sw2001, variable, value, -date, factor_key = TRUE) %>% 
  ggplot(aes(date, value)) + 
  geom_line() + 
  facet_wrap( ~ variable, labeller = labeller(variable = as_labeller(fc_labels))) + 
  theme_bw() + 
  labs(x = "", y = "", 
       # title = "Stock & Watson (2001). 'Vector Autoregressions'",
       # subtitle = " Journal of Economic Perspectives",
       title = "US quarterly data from 1960:Q1 to 2000:Q4")

Developed by Kostas Vasilopoulos.

Site built with pkgdown 1.4.1.