楼主: ywz1991
5551 8

[问答] 求助!invalid reference [推广有奖]

  • 0关注
  • 0粉丝

高中生

77%

还不是VIP/贵宾

-

威望
0
论坛币
64 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
260 点
帖子
1
精华
0
在线时间
72 小时
注册时间
2012-5-12
最后登录
2017-8-24

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
实在是很入门的一个问题.....就是在做多层logistic空模型分析的时候 因变量DV一直没法读取参照的结果变量...


307  PROC GLIMMIX METHOD=RSPL;

308  CLASS COUNTRY DV;

309  MODEL DV(ref ='1')=

310    /S DIST=MULTI LINK=GLOGIT DDFM=KR;

311  RANDOM INT/SUBJECT=COUNTRY Group= DV s cl;

312  NLOPTIONS TECH=NRRIDG;

313  RUN;


ERROR: Invalid reference value for DV.

NOTE: 由于出错,SAS 系统停止处理该步。


但是我检查了数据DV这个变量的每个选项的value的lable都能正常显示....

感觉没错啊,求助!!!




二维码

扫码加我 拉你入群

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

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

关键词:Reference invalid erence refer Valid reference invalid 因变量 ERROR 模型

沙发
jingju11 发表于 2014-6-1 23:34:36 |只看作者 |坛友微信交流群
The problem is, in SAS, event= has NO effect when there are more than two response categories, as you specified the distribution as multinomial.
JingJu

使用道具

藤椅
ywz1991 发表于 2014-6-2 00:10:01 |只看作者 |坛友微信交流群
jingju11 发表于 2014-6-1 23:34
The problem is, in SAS, event= has NO effect when there are more than two response categories, as yo ...
所以我写的是ref= 这样应该是对的呀?

使用道具

板凳
jingju11 发表于 2014-6-2 08:54:48 |只看作者 |坛友微信交流群
Binary分布的情况下是对的。在多乡分布的时候这种写法是错的。 京剧。

使用道具

报纸
ywz1991 发表于 2014-6-2 10:20:16 |只看作者 |坛友微信交流群
jingju11 发表于 2014-6-2 08:54
Binary分布的情况下是对的。在多乡分布的时候这种写法是错的。 京剧。
求大牛指点!应该怎样啊!

使用道具

地板
ywz1991 发表于 2014-6-2 11:15:05 |只看作者 |坛友微信交流群
帮助手册上建议删了ref= 语句, 然后就可以了...

使用道具

7
sunshine_state 发表于 2016-10-9 14:08:55 |只看作者 |坛友微信交流群
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.

使用道具

8
sunshine_state 发表于 2016-10-9 14:09:55 |只看作者 |坛友微信交流群
sunshine_state 发表于 2016-10-9 14:08
If, for two or more CLASS variables, you specify the REF= variable option in the CLASS statement to  ...
今天也碰到了同样的问题,最简单的做法就是重新编码一下~

使用道具

ywz1991 发表于 2014-6-2 00:10
所以我写的是ref= 这样应该是对的呀?
我认为是你的参考值错了,event=1 这里面的数须根数据集里面的变量值保持一致,如果数据集里面显示的是1.00,这里的话也必须是1.00.

使用道具

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

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-25 18:44