powered by
Functions to perform the Ljung-Box test for autocorrelation.
ljung_box(v, lags = -1, fit_dof = 0)
A two-element numeric vector containing the test statistic and the p-value.
A numeric vector.
A single integer value.
Boost Documentation for more details on the mathematical background.
# Ljung-Box test for autocorrelation ljung_box(c(1, 2, 3, 4, 5), lags = 2, fit_dof = 0)
Run the code above in your browser using DataLab