https://www.statsmodels.org/stable/generated/statsmodels.tsa.vector_ar.var_model.VAR.html
I want to impose constraints on the coefficient matrix. For example, in VAR(1), Yt = (A1) (Yt-1) + E, A1= [a11, a12; a21, a22], how to impose submatrix a21 = 0 since I already know one granger cause the other, but not the other way around before running the model? I also want granger causality test to reflect that too, e.g. give me 0 for those coefficients and NaN for the grangers_causation_matrix. In an economic scene, the number of patients will have a position influence on the price of a medicine, but the price of a medicine will not affect the number of patients in any way. I want to incorporate this information into the model before I run it. Does anyone know how to do it? Thanks
https://www.statsmodels.org/stable/generated/statsmodels.tsa.vector_ar.var_model.VAR.html
I want to impose constraints on the coefficient matrix. For example, in VAR(1), Yt = (A1) (Yt-1) + E, A1= [a11, a12; a21, a22], how to impose submatrix a21 = 0 since I already know one granger cause the other, but not the other way around before running the model? I also want granger causality test to reflect that too, e.g. give me 0 for those coefficients and NaN for the grangers_causation_matrix. In an economic scene, the number of patients will have a position influence on the price of a medicine, but the price of a medicine will not affect the number of patients in any way. I want to incorporate this information into the model before I run it. Does anyone know how to do it? Thanks
--
You received this message because you are subscribed to the Google Groups "pystatsmodels" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pystatsmodel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pystatsmodels/0fdb97e7-92f5-4974-8f70-c20acb0c9cc4n%40googlegroups.com.