楼主: moonstone
4694 1

[原创博文] Logistic回归三分类以上分类变量参考水平设定不合理的原因探讨 [推广有奖]

已卖:1872份资源

讲师

74%

还不是VIP/贵宾

-

威望
0
论坛币
10498 个
通用积分
369.2883
学术水平
160 点
热心指数
169 点
信用等级
124 点
经验
274346 点
帖子
237
精华
1
在线时间
520 小时
注册时间
2007-4-27
最后登录
2024-12-6

楼主
moonstone 发表于 2014-12-25 11:07:13 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
SAS 中Logistic回归中对于三分类以上分类变量采用class设定分类变量时,偶然会出现“Invalid reference value error if REF='level' 的提示,不清楚具体是什么原因。SAS针对该问题只是提出重新将参考水平设定成first或last的方法来解决,但是这种做法太不方便,尤其当变量太多时,不仅容易出错,更容易导致结果阅读的混乱。不知道哪位知道具体原因是什么,有没有更方便的解决办法。


SAS针对该问题的说明如下:http://support.sas.com/kb/13/510.html

Problem Note 13510: Invalid reference value error if REF='level' used for two or more variables

If, for two or more CLASS variables, you specify the REF= variable
option in the CLASS statement to identify particular reference levels
for the variables, then the following error will appear:

   ERROR: Invalid reference value for xxxxxxx.

where xxxxxxx is the name of a CLASS variable.  For example, this
statement will generate the error:

   class a(ref='1') b(ref='1');

To avoid the problem, remove the REF= options, or use REF=FIRST or LAST
instead of specifying particular values.  If you recode the variables or
assign formats so that the intended reference levels have the highest
sorted values, then you can remove the REF= options and get the desired
coding.

A fix for SAS 9.1.3 (9.1 TS1M3) for this issue is available at:

http://www.sas.com/techsup/download/hotfix/e9_sbcs_prod_list.html#013510
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:logistic回归 logistic ogistic logisti logist reference error

沙发
liudeng2005 发表于 2014-12-27 21:21:31
如果这个管方的解释都已经有了,为何要纠结,果断排序!

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-1-5 18:11