View source: R/tests_regular.R
ljungbox | R Documentation |
Compute Ljung-Box test to check the independence of a data.
ljungbox(data, k = 1, lag = 1, nhp = 0, sign = 0, mean = TRUE)
data |
data being tested. |
k |
number of auto-correlations used in the test |
lag |
number of lags used between two auto-correlations. |
nhp |
number of hyper parameters (to correct the degree of freedom) |
sign |
if |
mean |
Mean correction. If |
A c("JD3_TEST", "JD3")
object (see statisticaltest()
for details).
ljungbox(random_t(2, 100), lag = 24, k = 1)
ljungbox(ABS$X0.2.09.10.M, lag = 24, k = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.