Description Usage Arguments Value Examples
Monthly Simulation of rates using 1 factor Vasicek model of the form dr_{t} = a(b - r_{t})dt+σε_{t}
1 2 3 4 5 6 7 8 9 |
n |
number of simulated trials |
param_list |
a named list with parameters r0 - initial value, a - speed of mean reversion (annual), b - mean reversion level, v - annual volatility |
rmin |
|
t |
number of future monthly timesteps |
z_rand |
optional vector standard normal random variables of length n * t |
col_rename |
optional name of output column |
seed |
optional starting seed |
shift |
optional additive shift post simulation |
data in the form of a tibble
object with columns trial, time, r (or col_rename)
1 | SimVasicek1F(param_list = list(r0=.01, a=.5, b=.5, v=.05))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.