Easy way to get yield curve : what you need is only "FRBData" package !
I made FRBData package and registerd it on CRAN.
This package allow you to download financial data from FRB’s website.
This website provide many economical data such as consumer credit, money stock.
This article show you how to use this package.
(But, it has only a function about interest rate now. I will create other functions to download other macro-economical data in next version.)
First, because some mirror-site don’t update this package at this time, you should install it via CRAN.
(you may need to install the R which has version more than 2.12.)
As an example, we download treasury and swap curve from 2005 to 2011.
these data are an xts object.
plot “10Y swap spread”
plot time-varying treasury term structure
If you would like to get other interest rate data, please check Reference manual.
I think that this package will provide you good chance of analyzing yield curve such as yield curve e arbitrage.
(…and tell me interesting quant job in secret 🙂 )
offers daily e-mail updates
news and tutorials
on topics such as: Data science
, Big Data, R jobs
, visualization (ggplot2
), programming (RStudio
, Web Scraping
) statistics (regression
, time series
) and more...
If you got this far, why not subscribe for updates
from the site? Choose your flavor: e-mail
, or facebook