【发布时间】:2013-05-25 10:04:03
【问题描述】:
此帖子是对此处找到的帖子的补充:Python 2.7 - statsmodels - formatting and writing summary output
我得到了我需要的所有格式,除了置信区间给我带来了问题。
我尝试了很多不同的方法,包括:
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
【问题讨论】:
标签: python python-2.7 statsmodels