楼主: ywz1991
6215 8

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

  • 0关注
  • 0粉丝

高中生

75%

还不是VIP/贵宾

-

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

楼主
ywz1991 发表于 2014-6-1 22:03:56 |AI写论文

+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  ...
今天也碰到了同样的问题,最简单的做法就是重新编码一下~

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

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-9 14:58