全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
7280 1
2008-04-22

请问如何用sas生成伽马分布函数,并且能用sas对其进行ks检验吗?我是新手,请各位多多指教!谢谢

二维码

扫码加我 拉你入群

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

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

全部回复
2008-4-23 07:08:00

回复:(marisha)请教有关伽马分布函数

1.  A gamma variate X with shape parameter ALPHA and scale BETA can be generated:
 x=beta*rangam(seed,alpha);

2. you can use the following program to  generate  random variables for gamma distribution.

data test;
do i=1 to 10000;
      X=rangam(20,2);        /*20 means random seed*/   /*2 is a shape parameter*/
      output;                           
end;
run;


3.  goodness of fit test for gamma distribution

proc capability data=test;
      var x;
      histogram /          gamma   ;
run;

二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群