全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
5219 4
2009-08-24
前几天一个上班的师兄去参加一个培训,老师给了他们一个叫crystal ball的软件。功能蛮强大的,不过我发现大部分都是能在sas中实现的,但目前还有一个功能不知道怎么实现。所以来请教大家了。就是对于数据最优拟合(我也不知道拟合怎么定义的,那个软件就那样做的)分布的生成。简单的说就是给一组数据,通过软件能自动生成和该数据拟合最好的分布。我在sas/insight里面只能找到对4种分布的检验(只是检验还不是自动给出拟合最好的分布),但是crystal ball能自动给出24种分布中的一种。请问有谁知道sas怎么实现吗?
二维码

扫码加我 拉你入群

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

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

全部回复
2009-8-24 18:02:52
proc reliability 可以拟合,当然你自己可以写宏程序也是可以的
二维码

扫码加我 拉你入群

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

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

2009-8-24 22:46:15
可以用proc capability 来实现拟合分布和拟合优度的检验,从而挑选出最优分布
二维码

扫码加我 拉你入群

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

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

2014-7-16 13:45:07
%macro red;
%let var_red=red1 red2 red3 ;
%let i=1;
%let var=%scan(&var_red.,&i.);
%do %while(&var. ne %quote());
  proc capability data=ly.doubleball freq robustscale specialindices;
  var &var.;
  title 'Distribution of doubleball &var.';
  histogram &var./ midpoints=1 to 10 by 1  normal exponential lognormal  weibull gamma ;
  run;

%let i=%eval(&i.+1);
%let var=%scan(&var_red.,&i.);
%end;
%mend red;
%red;
二维码

扫码加我 拉你入群

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

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

2019-9-16 14:45:04
The following DATA step statements simulate a sample from a lognormal distribution with population parameters $\mu = 1.5$ and $\sigma =0.25$, and store the sample in the variable Y of a data set Work.Test_sev1:

/*------------- Simple Lognormal Example -------------*/
data test_sev1(keep=y label='Simple Lognormal Sample');
   call streaminit(45678);
   label y='Response Variable';
   Mu = 1.5;
   Sigma = 0.25;
   do n = 1 to 100;
      y = exp(Mu) * rand('LOGNORMAL')**Sigma;
      output;
   end;
run;
The following statements fit all the predefined distribution models to the values of Y and identify the best distribution according to the corrected Akaike’s information criterion (AICC):

proc hpseverity data=test_sev1 crit=aicc;
   loss y;
   dist _predefined_;
run;

The PROC HPSEVERITY statement specifies the input data set along with the model selection criterion, the LOSS statement specifies the variable to be modeled, and the DIST statement with the _PREDEFINED_ keyword specifies that all the predefined distribution models be fitted.


二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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