I would like to implement a code to check whether the VAR is stationary or not. Given the VAR,
A(L)y_t = e_t
If the VAR is stationary, then det(A(z)) = 0 has all roots that lie outside unit circle. However, if one of the roots lies inside the unit circel, then the VAR is said to be non-stationary. I would like to implement a code to check the stationarity according to the rule.
The equation involves determinant of matrix which depends on z. I think of using %det to implement the code. However, the matrix considered depends on z, so it involves other commands as well. Is there any short command to implement this? Or I need to consider some other kinds of numerical methods to solve the problem?
Thanks for attention. I would be pleased if anyone can help me about this.
