berkowitz_test | R Documentation |
The forecast density test of Berkowitz (2001).
berkowitz_test(x, lags = 1, ...)
x |
a series representing the PIT transformed actuals given the forecast values. |
lags |
the number of autoregressive lags (positive and greater than 0). |
... |
additional arguments passed to the arima function which estimates the unrestricted model. |
An object of class “tstest.berkowitz” which has a print and as_flextable method.
Berkowitz2001tstests
\insertRefJarque1987tstests
library(tsdistributions)
data(garch_forecast)
x <- pdist('jsu', q = garch_forecast$actual, mu = garch_forecast$forecast,
sigma = garch_forecast$sigma, skew = garch_forecast$skew,
shape = garch_forecast$shape)
print(berkowitz_test(x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.