leon22222 发表于 2010-8-26 11:11
关于proc logisitic后跟一个des的参数,从参考书上的解释是指定响应变量按降序的顺序。
我在实例操作过程中发现如下:
1、proc logistic data=jm.train1 ;(没加des参数)
model y=&bianliang;
run;
结果是:intercept=5.55
x1= -0.55
a= -0.34
b= 0.4518
d= 0.2894
.........
2、proc logistic data=jm.train1 des;(加了des参数)
model y=&bianliang;
run;
结果是: intercept=-5.55
x1= 0.55
a= 0.34
b= -0.4518
d= -0.2894
两种方式的结果对比是截距由正变为负以及各参数的相关系数也都发生了正反方向的变化。
根据参考书上的定义我无法理解。
请问老师:我这种理解是否正确?
第一种没加DES参数是对预测为0的概率的模型推导。
第二种加了DES参数是对预测为1的概率的模型推导。
求高手给出正解!
第二种加了DES参数是对预测为1的概率的模型推导。
Yes!.
If the value is coded as A and B then 第一种没加DES参数是对预测为 A 的概率的模型推导。Because A is before B in ASCII order.
The more meaningful syntax would be use
model y (event='1') = x1 x2 x3 x4 x5 for model event of y=1.
The math is simple log(P(y=1)/P(y=0)) = beta*x = - log(P(y=0)/P(y=1))
Hope this helps.


雷达卡
京公网安备 11010802022788号







