Please kindly help, any advise counts thanks!
I am trying to calculate the MAE (Mean Absolute Error) for VAR(1) rolling window but cannot resolve the error. Code: