這篇文章是除了這裏找到帖子:Python 2.7 - statsmodels - formatting and writing summary output的Python 2.7〜statsmodels - result.conf_int()
我被格式化我需要怎麼,除了置信區間一切給我的問題。
我已經嘗試了一些不同的事情,包括:
low, high = result.conf_int()
其中,印刷時,返回:
low
Out[260]: 0
high
Out[261]: 1
同樣,我已經試過:
low, up = result.conf_int().T
但得到錯誤:
ValueError: too many values to unpack
當我嘗試同樣的事情:
for item in result.conf_int().T:
low, high = item
print low
print high
ValueError: too many values to unpack
我也試圖尋找起來既here(我有0.4.3,找不到此版本的頁面)和here。對解決這個問題也沒有幫助。
沒錯!那樣做了!謝謝! – DMML