Last chance! 50% off unlimited learning
Sale ends in
This is a function to simulate the preliminary estimator and the corresponding one step estimators based on the Newton-Raphson and the scoring method of the Cox-Ingersoll-Ross process given via the SDE
with parameters
fitCIR(data)
A list with three entries each contain a vector in the following order: The result of the preliminary estimator, Newton-Raphson method and the method of scoring.
If the sampling points are not equidistant the function will return 'Please use equidistant sampling points'.
a numeric matrix
containing the realization of data[1,]
contains the sampling times data[2,]
the corresponding value of the process data[,j]=
Nicole Hufnagel
Contacts: nicole.hufnagel@math.tu-dortmund.de
The estimators calculated by this function can be found in the reference below.
Y. Cheng, N. Hufnagel, H. Masuda. Estimation of ergodic square-root diffusion under high-frequency sampling. Econometrics and Statistics, Article Number: 346 (2022).
#You can make use of the function simCIR to generate the data
data <- simCIR(alpha=3,beta=1,gamma=1, n=5000, h=0.05, equi.dist=TRUE)
results <- fitCIR(data)
Run the code above in your browser using DataLab