らんだむな記憶

blogというものを体験してみようか!的なー

statsmodels.api.OLSのsummary

https://github.com/statsmodels/statsmodels/blob/master/statsmodels/regression/linear_model.py#L2087かな。
これを参考に自分で整形すれば好きな表示にできるはず。

実際には、https://github.com/statsmodels/statsmodels/blob/master/statsmodels/iolib/summary.py#L804の部分で頑張っているようだ。

interceptについてはstatsmodels.regression.linear_model.OLS — statsmodels 0.7.0 documentation

An intercept is not included by default and should be added by the user. See statsmodels.tools.add_constant.

とかあるように、https://github.com/statsmodels/statsmodels/blob/master/statsmodels/tools/tools.py#L236を使って加えるようだ。何をやっているのかイマイチ分からんが。