VAR model with pandas + statsmodels in Python
问题 I am an avid user of R, but recently switched to Python for a few different reasons. However, I am struggling a little to run the vector AR model in Python from statsmodels. Q#1. I get an error when I run this, and I have a suspicion it has something to do with the type of my vector. import numpy as np import statsmodels.tsa.api from statsmodels import datasets import datetime as dt import pandas as pd from pandas import Series from pandas import DataFrame import os df = pd.read_csv('myfile