【发布时间】:2016-07-24 10:07:22
【问题描述】:
我正在关注statsmodels 教程中的第一个示例:
http://statsmodels.sourceforge.net/devel/
如何指定在 ols 中不使用常数项进行线性拟合?
# Fit regression model (using the natural log of one of the regressors)
results = smf.ols('Lottery ~ Literacy + np.log(Pop1831)', data=dat).fit()
【问题讨论】:
标签: python numpy regression statsmodels patsy