楼主: rodrigues
3011 1

[问答] 请教SAS如何对“斜率=1”进行T检验,还有wald检验 [推广有奖]

  • 0关注
  • 0粉丝

已卖:27份资源

硕士生

76%

还不是VIP/贵宾

-

威望
0
论坛币
25 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
13326 点
帖子
83
精华
0
在线时间
239 小时
注册时间
2012-6-8
最后登录
2016-4-30

楼主
rodrigues 发表于 2013-7-26 12:27:37 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
请教SAS如何对“斜率=1”进行T检验,还有如何对“截距=0,斜率=1”进行WALD检验,都是一元回归,求高手指点
二维码

扫码加我 拉你入群

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

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

关键词:wald检验 Wald t检验 高手指点 求高手 如何

回帖推荐

邓贵大 发表于2楼  查看完整内容

Here's an example. In model 1, Test1 tests 'slope=3', the square root of the F-test statistic is the t-test statistics you want; Test2 tests 'Intercept=0 and Slope=3' and it's a Wald test. Alternatively, subtract 3*LotSize from the response variable then run Model 2, you'll see the t-test in the 'Parameter Estimates' section of output. Also you can compute the Wald test statistic manually as ...

沙发
邓贵大 发表于 2013-7-27 01:25:30
  1. data toluca;
  2.         input LotSize WorkHrs @@;
  3.         WorkHrs3 = WorkHrs - 3*LotSize;
  4. cards;
  5. 80 399 30 121 50 221 90 376 70 361 60 224 120 546 80 352 100 353 50 157 40 160 70 252
  6. 90 389 20 113 110 435 100 420 30 212 50 268 90 377 110 421 30 273 90 468 40 244 80 342 70 323
  7. ;
  8. run;
  9. proc reg data=toluca;
  10.         model workhrs=lotsize;
  11.         Test1: test lotsize=3;
  12.         Test2: test Intercept=0, Lotsize=3;
  13. run;
  14. proc reg data=toluca;
  15.         model WorkHrs3 = LotSize;
  16. run;
  17. proc reg data=toluca;
  18.         model WorkHrs3 = /noint;
  19. run;
复制代码
Here's an example.
In model 1, Test1 tests 'slope=3', the square root of the F-test statistic is the t-test statistics you want; Test2 tests 'Intercept=0 and Slope=3' and it's a Wald test.

Alternatively, subtract 3*LotSize from the response variable then run Model 2, you'll see the t-test in the 'Parameter Estimates' section of output.
Also you can compute the Wald test statistic manually as
(322793 - 54825)/2 / (54825/23),
where 322793=error sum of squares of model 3 (null model), 54825=error sum of squares from model 2 (full model), 2 = # of parameters in test, 23 = degrees of freedom in full model.

已有 1 人评分学术水平 热心指数 信用等级 收起 理由
jingju11 + 5 + 5 + 5 精彩帖子

总评分: 学术水平 + 5  热心指数 + 5  信用等级 + 5   查看全部评分

Be still, my soul: the hour is hastening on
When we shall be forever with the Lord.
When disappointment, grief and fear are gone,
Sorrow forgot, love's purest joys restored.

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

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