f*********8 发帖数: 165 | 1 请教logistic regression的 independent variable是categorical ariable 时,必须
是ordinal categorical 吗?
如果只是一般的categorical ariable,coefficent 的意义是什莫啊(如果有意义的话)
多谢。
在网上看到下面的这个例子。
http://nlp.stanford.edu/~manning/courses/ling289/logistic.pdf
里面的independent ariable 好像就是普通的categorical ariable,
比如说,ariable “cat” 的值是d,m,n,v; 另一个categorical ariable "follows"的值是P,V。 coefficent 的意义该怎末解释啊?
Coefficients:
Estimate Std. Error z value Pr(>|z|)
(Intercept) -1.31827 0.12221 -10.787 < 2e-16
catd -0.16931 0.10032 -1.688 0.0 | b*****o 发帖数: 482 | 2 如果你的categorical variable是1,2,3...那就是assume ordinal的. 如果不是
ordinal的话你应该把categorical variable换成dummy variables: e.g, x1=0 vs 1,
x2=0 vs 1.... | R*********i 发帖数: 7643 | 3 SAS v9 got class statement for categorical variables. Binary indicators are
automatically created within SAS.
,
【在 b*****o 的大作中提到】 : 如果你的categorical variable是1,2,3...那就是assume ordinal的. 如果不是 : ordinal的话你应该把categorical variable换成dummy variables: e.g, x1=0 vs 1, : x2=0 vs 1....
| j*******2 发帖数: 309 | 4 可以是一般的categorical variable。我找不到你这个例子的数据,但像你举得这个例
子cat应该
有5个factor,第一个level的系数是0 for identifiability.
catd 的系数是-0.16931,表示与baseline的odds ratio是e^(-0.16931)
须
话)
的值
是P,V。 coefficent 的意义该怎末解释啊?
【在 f*********8 的大作中提到】 : 请教logistic regression的 independent variable是categorical ariable 时,必须 : 是ordinal categorical 吗? : 如果只是一般的categorical ariable,coefficent 的意义是什莫啊(如果有意义的话) : 多谢。 : 在网上看到下面的这个例子。 : http://nlp.stanford.edu/~manning/courses/ling289/logistic.pdf : 里面的independent ariable 好像就是普通的categorical ariable, : 比如说,ariable “cat” 的值是d,m,n,v; 另一个categorical ariable "follows"的值是P,V。 coefficent 的意义该怎末解释啊? : Coefficients: : Estimate Std. Error z value Pr(>|z|)
| f*********8 发帖数: 165 | |
|