HARDataCreationC | R Documentation |
Constructs a matrix containing the realized measure and the lagged moving averages according to the supplied lag-vector.
HARDataCreationC(vRealizedmeasure, vLags)
vRealizedmeasure |
A vector containing a realized measure of the integrated volatility. |
vLags |
A vector denoting which lags should be used in the creation |
None for now.
A matrix containing the data used for HAR estimation or forecasting.
Emil Sjoerup
Corsi, F. 2009, A Simple Approximate Long-Memory Model
of Realized Volatility, Journal of Financial Econometrics, 174–196.
See Also HARestimate
## Not run: ## Construct a vector of size 1000: vData = rnorm(1000)^2 ## Construct a lag-vector vLags = c(1,5,22) Example = HARDataCreationC(vData , vLags) ## The dimensions of Example is (978 , 4) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.