0

I am running a Structural Vector AutoRegression model in python, I keep running into this error. Any help would be amazing

from statsmodels.tsa.vector_ar.svar_model import SVAR
A = np.asarray([[1, 'E', 0], [1, 'E', 'E'], [0, 0, 1]])
B = np.asarray([['E', 0, 0], [0, 'E', 0], [0, 0, 'E']])
A_guess = np.asarray([0.5, 0.25, 0])
B_guess = np.asarray([0, 0.1, 0.05])

mymodel = SVAR(df_VEN_diff, svar_type='A', A=A, B=B,freq = None)
res = mymodel.fit(maxlags=4, maxiter=10000, maxfun=10000, solver='bfgs')
res.irf(periods=30).plot(impulse='realgdp', plot_stderr=False)

That's my dataset

Thats the traceback error

wjandrea
  • 23,210
  • 7
  • 49
  • 68
Angad707
  • 1
  • 1
  • 1
    Welcome to Stack Overflow! Please take the [tour]. [Please don't post pictures of text](https://meta.stackoverflow.com/q/285551/4518341). Instead, put the text itself and use code formatting for the error. Please also provide working example input; see [mre] and [How to make good reproducible pandas examples](/q/20109391/4518341). If you want more tips, check out [ask]. – wjandrea Mar 05 '22 at 19:31

0 Answers0