楼主: lisafly169
3579 5

[问答] 大牛,菜鸟请教您啦!!! 有关CONTRAST 语句 [推广有奖]

  • 0关注
  • 0粉丝

初中生

9%

还不是VIP/贵宾

-

威望
0
论坛币
-1 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
87 点
帖子
10
精华
0
在线时间
13 小时
注册时间
2012-10-20
最后登录
2013-9-3

楼主
lisafly169 学生认证  发表于 2012-10-23 13:41:24 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
分析线性回归和平方回归时 用 contrast语句,后面还要配相应的系数,系数的获得是用这样的语句,
proc iml;
x={2 4 6};
xp=orpol(x,2);
print xp;
run;

由获得的系数再用在contrast 语句后,做线性和平方回归的分析,有谁用过这个呢?
contrast "zuhe linear" zuhe -0.707107        0        0.7071068;
contrast "zuhe quadratic" zuhe 0.4082483        -0.816497        0.4082483;

二维码

扫码加我 拉你入群

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

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

关键词:CONTRAST contr RAS con Quadratic

沙发
大数据之魂 发表于 2012-11-12 20:02:17
where is the contrast statement

藤椅
lisafly169 学生认证  发表于 2012-11-17 00:30:59
大数据之魂 发表于 2012-11-12 20:02
where is the contrast statement
proc GLM;
class         zuhe        youshi        junyundu;
model net =        zuhe junyundu youshi zuhe*junyundu/ss4;
random youshi/q;
lsmeans zuhe junyundu;
means zuhe junyundu/duncan;

contrast "zuhe linear" zuhe -0.707107        0        0.7071068;
contrast "zuhe quadratic" zuhe 0.4082483        -0.816497        0.4082483;

run;

这是我的程序,您能帮我分析下这个可行吗

板凳
jingju11 发表于 2012-11-17 04:04:36
you are right. since your test variable is equally spaced, i.e., { 2 4 6}, so all contrasts written like the following forms
Linear   -1   0   1   &       Quad      1  -2   1
were correct to test linear &  quad trend.
we know that the constrast does not matter about a factor added, for example {-1 0 1} == {-1.234 0 1.234}, and so on.

Jingju

报纸
jingju11 发表于 2012-11-17 09:57:19
continue on the last post:
I saw an interaction term  zuhe*junyundu. so i doubt the above code is proper to test linear trend for ' zuhe', but i dont know how to adjust for it.
\jingju

地板
lisafly169 学生认证  发表于 2012-11-17 10:04:43
jingju11 发表于 2012-11-17 09:57
continue on the last post:
I saw an interaction term  zuhe*junyundu. so i doubt the above code is p ...
ok, thanks very much, you are a very nice man~~

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

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