fzdream 发表于 2011-6-14 11:37 
thanks。我在一个iml书里看到了有function列表,但是没有提出如何call。那正常sas求这些东西应该比较麻烦了吧?by the way,你用sas可以直接求acf,pacf的显著性么?用barlett或者bjung box之类。 5# bobguy
In sas 9.2 IML, you can have a submit block in which you can call many SAS procedures. You really don't need to invent the wheel by yourself. You may find all your topics in proc arima.
Here is an example,
proc iml;
call randseed(123);
x = j(100,1, .);
call randgen(x,'normal');
create dsnx from x;
append from x;
close dsnx;
DSName='dsnx';
submit DSName ;
proc univariate data=&DSName;
var col1;
ods output Moments=Moments;
run;
endsubmit;
use Moments;
read all var {"nValue1"} into m;
read all var {"nValue2"} into m2;
close Moments;
print m m2;
quit;
proc means data=dsnx n mean std skew kurt;
var col1;
run;