Create the spot rate function y_t(n) using equation 22 of
Gurkaynak, Sack, and Wright (2006). The returned function is
parameterized by n
, corresponding to the n-year continuously
compounded spot rates at any given date t.
1 | spot_rate_factory(beta_0, beta_1, beta_2, beta_3, tau_1, tau_2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.