Home>

Trying to use SARIMAX in time series analysis
I'm having trouble with ValueError: maxlag should be

Please give some advice on the meaning of this error and how to deal with it.

The data is the number of monthly sales with a 12-month periodicity, such as the monthly sales of ice cream.

Code used

model = sm.tsa.SARIMAX (train_data ['Monthly sales'], order = (1,0,1), seasonal_order = (2,2,1,12))
model_fit = model.fit (disp = 0)