est.VAS.KF | R Documentation |
Parametric estimation for the Vasicek model using the Kalman filter algorithm, where the discretized version of the model is obtained with the Euler-Maruyama method. The parametric form of the Vasicek model used here is given by
dX_t = (α - κ X_t)dt + σ dW_t.
est.VAS.KF(X, Delta = deltat(X), par = NULL, mu0 = 0, Sigma0 = 1)
X |
a numeric vector, the sample path of the SDE. |
Delta |
a single numeric, the time step between two consecutive observations. |
par |
a numeric vector with dimension three indicating initial values of the parameters. Defaults to NULL, fits a linear model as an initial guess. |
mu0 |
a single numeric, the initial mean. Defaults to zero. |
Sigma0 |
a single numeric, the initial variance. Defaults to one. |
A list containing a matrix with the estimated coefficients and the associated standard errors.
x <- rVAS(360, 1/12, 0, 0.08, 0.9, 0.1) est.VAS.KF(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.