I want to do multivariate data analysis using vector auto regression (VAR
), but want more freedom. For example, the question I am dealing with can look like:
y1(t) = a11*y1(t-1) + a12*y1(t-2) + b11*y2(t-1) + c11*x1(t) + c12*x2(t) + d1
y2(t) = a21*y1(t-1) + b21*y2(t-1) + b22*y2(t-2) + c21*x1(t) + c22*x2(t) + d2
So you see, the above equations are not a simple VAR(1)
or VAR(2)
model, but a mix. Does python's any statistics model package supports such equations, and how to write it in formula or patsy?