signbias_test | R Documentation |
The sign bias test of Engle and Ng (1993).
signbias_test(x, sigma = 1, ...)
x |
a series representing the residuals of some estimated model. |
sigma |
either a scalar representing the residuals standard deviation else a vector of the same length as x representing the conditional standard deviation of the residuals. |
... |
additional arguments passed to |
An object of class “tstest.signbias” which has a print and as_flextable method.
Engleng1993tstests
library(tsgarch)
library(tsdistributions)
library(xts)
data("spy")
spyr <- na.omit(diff(log(spy)))
spec <- garch_modelspec(spyr, model = "garch", order = c(1,1),
constant = TRUE, distribution = "jsu")
mod <- estimate(spec)
print(signbias_test(residuals(mod), sigma(mod)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.