rVAS | R Documentation |
rVAS
simulates a single path of the Vasicek process using its known conditional
distribution. The parametric form of the Vasicek model used here is given by
dX_t = (α - κ X_t)dt + σ dW_t.
rVAS(n, Delta, X0, alpha, kappa, sigma)
n |
an integer indicating the sample size. |
Delta |
a single numeric, the time step between two consecutive observations. |
X0 |
a single numeric, initial value of the process. |
alpha |
a single numeric, drift parameter. |
kappa |
a single numeric, rate of mean reversion. |
sigma |
a single numeric, volatility parameter. |
A ts
object, a numeric vector with the sample path of the SDE.
x <- rVAS(360, Delta = 1/12, X0 = 0.09, alpha = 0.08, kappa = 0.9, sigma = 0.1) plot(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.