goodn_of_fit_test,fEGarch_fit-method | R Documentation |
Consider a probability integral transform on the standardized residuals of a fitted model and apply a Pearson goodness-of-fit test to the binned data using a selection of predefined number of bins.
## S4 method for signature 'fEGarch_fit'
goodn_of_fit_test(object, n_bins = c(20, 30, 40, 50), silent = FALSE, ...)
object |
an object of class |
n_bins |
a numeric vector giving the number of bins to use. |
silent |
a logical indicating whether or not to print the test results in a well-formatted manner to the console. |
... |
currently without purpose. |
Use a probability integral transform on the standardized residuals of a fitted model. This is then the basis to conduct a Pearson goodness-of-fit chi-square test.
Returns a numeric matrix invisibly.
window.zoo <- get("window.zoo", envir = asNamespace("zoo"))
rt <- window.zoo(SP500, end = "2002-12-31")
spec <- fEGarch_spec()
model <- fEGarch(spec, rt)
goodn_of_fit_test(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.