由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - 求助,SAS运行proc logistic 出现离奇的现象!
相关主题
I have a question about logistic regression modela regression model test issue
菜鸟求教SAS logistic procedure求助:SAS结果显示model is not full rank
包子问题:default risk with censored data,信用卡公司应该常用的吧郁闷死了,请教一个R的问题
SAS help...[合集] 急问用SAS 分析LOGISTIC regression, 有fix variable &rand
怎样得到estimated prob. of event in SAS Logistic Reg急问高手,怎样在SAS实现logistic regression里independent variable重要性排序?
SAS question - baozilogistic regression issue
问个工作中遇到的问题慕名而来,请教一个 SAS date question
请教一个exact logistic regression的问题SAS里面怎么设置vector
相关话题的讨论汇总
话题: sas话题: variable话题: event话题: model话题: 运行
进入Statistics版参与讨论
1 (共1页)
b********1
发帖数: 2861
1
为什么用SAS运行ordered probit model, 得到的parameter estimated 都是反的? 在
R里面,用同样的数据,得出的结果是正常的,就是跟SAS差个正负号关系。SAS跟R的
order 都是一样的顺序,请问这种情况我是不是需要修改什么系统设置? 之前用SAS9.
2的时候无此现象,现在装了一个9.3才出现错误。
多谢!
b********1
发帖数: 2861
2
版上达人都没遇到过类似问题吗?
t**c
发帖数: 539
3
Are your explanatory variables categorical?
SAS by default calculates the coefficient for (X=0), not for (X=1) as we
usually do or as in R. Therefore the signs of the coefficients will be
opposite.
b********1
发帖数: 2861
4
多谢回复!
这个我在模型里面已经指定了,比如x=0,1,2.我在模型里指定class x(ref="0").所以
不会是这个问题,另外我把categorical variable 去掉,只有continuous variable,
也出现同样的错误。
R里面我用relevel做了同样的设定,所以我看不出来错误出在哪里。

【在 t**c 的大作中提到】
: Are your explanatory variables categorical?
: SAS by default calculates the coefficient for (X=0), not for (X=1) as we
: usually do or as in R. Therefore the signs of the coefficients will be
: opposite.

h***i
发帖数: 3844
5
he said dependent variable, not independent variable.

【在 b********1 的大作中提到】
: 多谢回复!
: 这个我在模型里面已经指定了,比如x=0,1,2.我在模型里指定class x(ref="0").所以
: 不会是这个问题,另外我把categorical variable 去掉,只有continuous variable,
: 也出现同样的错误。
: R里面我用relevel做了同样的设定,所以我看不出来错误出在哪里。

t**c
发帖数: 539
6
Hehe, I meant independent variable.
But it is also true for the dependent variable.SAS by default model the
probability for event of 0. So in your model, you may use Y(Desc) or Y(event
='1') to force SAS to model the probability for event of 1.

【在 h***i 的大作中提到】
: he said dependent variable, not independent variable.
h***i
发帖数: 3844
7
......
my first impression is, sas estimated Prob(Y=0) instead of Prob(Y=1);

event

【在 t**c 的大作中提到】
: Hehe, I meant independent variable.
: But it is also true for the dependent variable.SAS by default model the
: probability for event of 0. So in your model, you may use Y(Desc) or Y(event
: ='1') to force SAS to model the probability for event of 1.

b********1
发帖数: 2861
8
The response variable has 4 classes, 1,2,3,4. How can I set up the ref level
for the response variable? When I ran in SAS 9.2 with the same code, it
turns out the parameter estimates are in correct sign.
1 (共1页)
进入Statistics版参与讨论
相关主题
SAS里面怎么设置vector怎样得到estimated prob. of event in SAS Logistic Reg
SAS quarter calculation questionSAS question - baozi
[合集] 啥叫Probit model?问个工作中遇到的问题
[合集] sas中proc logistic和genmond区别是?请教一个exact logistic regression的问题
I have a question about logistic regression modela regression model test issue
菜鸟求教SAS logistic procedure求助:SAS结果显示model is not full rank
包子问题:default risk with censored data,信用卡公司应该常用的吧郁闷死了,请教一个R的问题
SAS help...[合集] 急问用SAS 分析LOGISTIC regression, 有fix variable &rand
相关话题的讨论汇总
话题: sas话题: variable话题: event话题: model话题: 运行