I'm working with some VAR models and I've come to a stage where I need to impose some restrictions, so I make it into a system and make my changes. The issue is when testing for autocorrelation, since the degrees of freedom differ from when using the same test in a VAR model. I tried to find some logic in how the degrees of freedom are calculated, but without success. I must be missing something but I cannot understand what.
In a bivariate VAR(4) the degrees of freedom is according to the User guide: k^2(h-p)=2^2(h-4), which for h=5 then should be equal to 4 (2^2(5-4)). The test says 7. I played around a little and I can't find any mathematical logic in the following degrees of freedom (for all h=5 and p=4):
Code: Select all
k=2, test says 7 df
k=3, test says 16 df
k=4, test says 29 df
k=5, test says 46 df
k=6, test says 67 df
k=7, test says 92 dfIf anyone can help shed some light on this I would be very grateful.
