dynardl.auto.correlated | R Documentation |
dynardl
modelRun a variety of autocorrelation tests on the residuals from a dynardl
model
dynardl.auto.correlated( x, bg.type = "Chisq", digits = 3, order = NULL, object.out = FALSE )
x |
a |
bg.type |
a character string for the type of Breusch-Godfrey test to run. The default is |
digits |
the number of digits to round to when showing output. The default is |
order |
the maximum order of serial autocorrelation to test when executing the Breusch-Godfrey test |
object.out |
if |
This is a simple and convenient way to test whether the residuals from the dynardl
model are white noise. As an aside, this is also why dynardl
has a simulate = FALSE
argument: users can ensure the model has white noise residuals before estimating a potentially time-intensive simulation. The output also reminds the user of the null hypotheses for the autocorrelation tests
The results of autocorrelation tests
Soren Jordan and Andrew Q. Philips
# Using the ineq data from dynamac ardl.model <- dynardl(concern ~ incshare10 + urate, data = ineq, lags = list("concern" = 1, "incshare10" = 1), diffs = c("incshare10", "urate"), lagdiffs = list("concern" = 1), ec = TRUE, simulate = FALSE) dynardl.auto.correlated(ardl.model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.