請教各位牛人 我的CODE有何問題
/*** Simulation for ARMA(3,2) with T=500 ***/
n=500;
t=seqa(0,1,n);
seed=912226;
u=rndns(n,1,seed);
x=zeros(n,1);
a= 0.1;
b=-0.3;
c=0.4;
d=0.2;
e=0.3;
x[1]=u[1];
x[2]=a*x[1]+u[2]+d*u[1];
x[3]=a*x[2]+b*x[1]+u[3]+d*u[2]+e*u[1];
x[4]=a*x[3]+b*x[2]+c*x[1]+u[4]+d*u[3]+e*u[2];
i=5;
do while i <= n;
x[i]=a*x[i-1]+b*x[i-2]+c*x[i-3]+u[i]+d*u[i-1]+e*u[i-2]; /****ARMA(3,2)****/
i=i+1;endo;
_pdate="";
output file= C:\gg\gg.txt ;
output reset;
print x;
output off;