【发布时间】:2011-01-24 08:57:35
【问题描述】:
我进行了逻辑回归,结果如下:
ssi.logit.single.age["coefficients"]
# $coefficients
# (Intercept) age
# -3.425062382 0.009916508
我需要为age取系数,目前我使用以下代码:
ssi.logit.single.age["coefficients"][[1]][2]
有效,但我不喜欢这里的神秘代码,我可以使用系数的名称(即(Intercept)或age)
【问题讨论】: