楼主: anyme
1972 2

[原创博文] Please tell me how to use sas in one sample chi square test [推广有奖]

  • 0关注
  • 0粉丝

本科生

18%

还不是VIP/贵宾

-

威望
0
论坛币
982 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
495 点
帖子
64
精华
0
在线时间
54 小时
注册时间
2005-4-6
最后登录
2022-5-27

楼主
anyme 发表于 2010-9-25 04:21:44 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
Sorry cannot type Chinese

                              Here is the question:





thetrue standard deviation of thickness is 1.5 millimeters, Thickness measurements in millimeters of 10specimens produced on a particular shift resulted in the following data: 226,228, 226, 225, 232, 228, 227, 229 225, 230.  α=0.05  Dothe data substantiate the suspicion that the process variability exceeded thestated level on this particular shift?(Test at α=.05.)

suppose H0:
σ<1.5    and    H1: σ>=1.5;             The rejection region is :  { (n-1)S*S/σ*σ}>χ(square)(n-1),α

s=2.27  ;   X(square){9,α=0.05}=16.9190

(n-1)S*S/σ*σ=9*2.27*2.27/1.5*1.5=20.612   

I can infer 20.612>16.919  so fail to reject the null hypothesis.

However, I can not find any information about this kind of hypothesis using SAS,  referring

σ and x square...often containing two samples


please help me guys, Thank you so much.
二维码

扫码加我 拉你入群

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

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

关键词:Sample Square please Lease AMPL particular following produced question standard

沙发
jingju11 发表于 2010-9-25 10:45:49
1# anyme


  1. data a;
  2. infile datalines4 dlm = ',';
  3. input x@@;
  4. datalines4;
  5. 226,228, 226, 225, 232, 228, 227, 229 ,225, 230
  6. ;;;;
  7. proc means noprint;
  8.   var x;
  9.   output out =_MeansOut(keep=var n std) n=n var=var std=std;
  10. run;
  11. data _null_;
  12.   set _MeansOut;  
  13. df =n-1;  sigma0 = 1.5;
  14.    chisq =(df*var)/sigma0 **2;
  15.    pvalue =sdf('chisq', chisq, df);
  16. put chisq= pvalue=;
  17. run;
复制代码


As far as I know, SAS does not provide the test in a procedure directly (I am not sure in fact). But very close to that, proc univariate computes the confidence interval for std.
JingJu
已有 1 人评分学术水平 收起 理由
peijiamei + 3 好的意见建议

总评分: 学术水平 + 3   查看全部评分

藤椅
anyme 发表于 2010-9-30 03:30:57
2# jingju11

Thank you very much .

You are so nice

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

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