Skip to content

Instantly share code, notes, and snippets.

@mbusigin
Created December 15, 2013 16:51
Show Gist options
  • Save mbusigin/7975263 to your computer and use it in GitHub Desktop.
Save mbusigin/7975263 to your computer and use it in GitHub Desktop.
Estimating the cumulative utility of household debt to national income.
library(quantmod)
getSymbols(c("GDP", "CMDEBT"), src="FRED")
plot(cumsum(na.omit(diff(GDP) - diff(CMDEBT))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment