See the paper of Ljung-Box test for the used definition of autocorrelation.

portmanteau_test_statistics(matrix)

Arguments

matrix

the matrix of residuals or squared residuals.