Description Usage Arguments Details Value Author(s) References See Also Examples
Run a series of white noise tests
1 | whitenoise_test(object, type = "deviance", k = 25, ...)
|
object |
a model fitted by |
type |
a quoted string indicating the type of residuals to extract. Default is |
k |
an integer indicating the number of lags to compute the partial autocorrelation coefficients |
... |
further options for |
This function submits the extracted residuals to a series of white noise tests.
For normality evaluation the robust tests Bownman-Shenton and Jarque-Bera tests are implemented. Besides, Kolmogorov-Smirnov and Shapiro tests are performed using ks.test
and shapiro.test
respectively.
Serial dependence of the residuals is evaluated using ljungbox_test
.
Heteroscedasticity tests will be implemented soon.
Results are printed out on the console.
This function does not return a value.
Washington Junger wjunger@ims.uerj.br and Antonio Ponce de Leon ponce@ims.uerj.br
Bowman, K.O. and Shenton L.R. (1975) Omnibus test contours for departures from normality based on b1 and b2. Biometrika 62, 243–250.
Jarque, C. M. and Bera, A. K. (1987) A Test for Normality of Observations and Regression Residuals. International Statistical Review, 55(2), 163–172.
Spanos, A. (1999) Probability Theory and Statistical Inference. Cambridge.
1 2 3 4 5 6 | data(admrio)
setup(admrio,"date")
f <- resp5~s(time)+weekdays+s(tmpmax)+s(humid)
m <- fit_core(f)
r <- get_residuals(m)
whitenoise_test(r)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.