python 片段VAR

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python 片段VAR相关的知识,希望对你有一定的参考价值。

from statsmodels.tsa.api import VAR

model = VAR(series)
results = model.fit(maxlags=3, trend='c')

results.summary()

# Parameters
# ----------
# maxlags : int
#     Maximum number of lags to check for order selection, defaults to
#     12 * (nobs/100.)**(1./4), see select_order function
# method : {'ols'}
#     Estimation method to use
# ic : {'aic', 'fpe', 'hqic', 'bic', None}
#     Information criterion to use for VAR order selection.
#     aic : Akaike
#     fpe : Final prediction error
#     hqic : Hannan-Quinn
#     bic : Bayesian a.k.a. Schwarz
# verbose : bool, default False
#     Print order selection output to the screen
# trend : str {"c", "ct", "ctt", "nc"}
#     "c" - add constant
#     "ct" - constant and trend
#     "ctt" - constant, linear and quadratic trend
#     "nc" - co constant, no trend
#     Note that these are prepended to the columns of the dataset.


以上是关于python 片段VAR的主要内容,如果未能解决你的问题,请参考以下文章

jacript var let const 区别

php静态属性

如何为片段设置观察者

python Python片段

python python片段

python Python片段