Functions to perform the Ljung-Box test for autocorrelation.
See also
Boost Documentation for more details on the mathematical background.
Examples
# Ljung-Box test for autocorrelation
ljung_box(c(1, 2, 3, 4, 5), lags = 2, fit_dof = 0)
#> [1] 1.5166667 0.4684465