Description Usage Arguments Value Author(s) References Examples
Simulates a HAR model. From using the AR representation of the HAR model.
1 2 | HARSimulate(len=1500, periods = c(1, 5, 22),
coef = c(0.01, 0.36 ,0.28 , 0.28), errorTermSD = 0.001)
|
len |
An |
periods |
A |
coef |
A |
errorTermSD |
A |
A HARSim
object
Emil Sjoerup
Corsi, F. 2009, A Simple Approximate Long-Memory Model
of Realized Volatility, Journal of Financial Econometrics, 174–196.
1 2 3 4 5 | set.seed(123)
#Simulate the process of size 10000
HARSim = HARSimulate(len = 10000, periods = c(1, 5, 22),
coef = c(0.01, 0.36, 0.28, 0.28), errorTermSD = 0.001)
HARFit = HAREstimate(HARSim@simulation, periods = c(1, 5, 22))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.