楼主: previal
6411 1

[原创博文] SAS GLM LSMEANS Non-est?WHY? [推广有奖]

  • 1关注
  • 1粉丝

硕士生

46%

还不是VIP/贵宾

-

威望
0
论坛币
22 个
通用积分
0
学术水平
5 点
热心指数
6 点
信用等级
3 点
经验
645 点
帖子
93
精华
0
在线时间
138 小时
注册时间
2010-5-24
最后登录
2015-7-7

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
SAS中GLM过程,为什么程序运行后sex的lsmeans显示Non-est?如果我把class变量变成两个,比如class sex  DHABIT;
或class sex age_g  ;程序运行后均能正常显示sex的lsmeans,可是三个class变量反而不行,请高手指教!!!

proc glm data=a;
class sex age_g  DHABIT;
model ADJ_BPAL=SEX AGE_G  DHABIT CREATI_1 AGE_G*SEX AGE_G*DHABIT SEX * DHABIT
AGE_G * SEX * DHABIT/solution;
means AGE_G SEX DHABIT;
lsmeans SEX AGE_G  DHABIT AGE_G*SEX AGE_G*DHABIT SEX * DHABIT
AGE_G * SEX * DHABIT/ stderr pdiff cl tdiff   ;
run;quit;
二维码

扫码加我 拉你入群

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

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

关键词:LSmeans means mean ans Est solution 程序

沙发
jingju11 发表于 2010-9-5 01:29:17 |只看作者 |坛友微信交流群
1# previal

The problem should be from non-estimable L matrix. That is, SAS finds that least square means are not estimable.
Putting a variable in CLASS statement has two consequences. The one is checking its availability even if it is not in the fitting model, and the other is treating as a categorical variable instead of continuous one. In your case, adding one more variable in the CLASS statement will tell if the added variable is classification-modelled. Obviously, 3 categorical variables will further thin or shrink the cells where to hold the events than two categorical variables. That is, the singularity may incur in the thinned cells more often; and thus a more likely resulting singular matrix will prevent SAS from calculating the estimates, here are LS means. This singularity also can result from the collinearity between variables. I would suggest that, to table the three variables and see if there are zero cells (you are in 3-way interaction, i.e., A*B*C).
Maybe more relevant way for your case to solve the problem is to enlarge the value of the option of singular= in LSMEANS statement. The default is 1E-4. However, the remedy may not work at all and thus eventually the more attention should go to your data even that works.
only my 2-cents. JingJu

使用道具

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

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

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

GMT+8, 2024-4-30 18:38