【发布时间】:2016-08-27 04:50:27
【问题描述】:
有人可以告诉我我遗漏的地方吗,因为尽管我已经明确指出了摘要输出,但它根本没有提供常量?我的 df 是 6212 行 × 64 列。非常感谢。
import statsmodels.api as sm
from statsmodels.api import add_constant
y1 = df.ix[:,-1:]
x1 = df.ix[:,16:-1]
x1 = add_constant(x1)
model1 = sm.OLS(y1 , x1 ).fit()
model1.summary()
【问题讨论】:
标签: python regression