TomDoan wrote:Please send the program and data to
support@estima.com. At this point, your problems are too specific to your particular situation to keep trying to answer them on the forum.
OPEN DATA "C:\data\133.xls"
CALENDAR(M) 1991:4
ALL 2010:03
DATA(FORMAT=XLS,ORG=COLUMNS) 1991:04 2010:03 rsi rgl date lnrsi lnrgl dlnrsi dlnrgl
OPEN DATA "C:\data\133.xls"
nonlin phi1 phi2 phi3 psi
compute phi1=0.1, phi2=0.1, phi3= 0.1,psi=0.1
dec frml[rect] af
frml af = ||phi1,phi2,phi3,0,0,0|$
1,0,0,0,0,0|$
0,1,0,0,0,0|$
0,0,1,0,0,0|$
0,0,0,0,1/psi,0|$
0,0,0,0,1,0||
dec rect f(6,2)
input f
1 0
0 0
0 0
0 0
0 1
0 0
function CalcM1
dec vector CalcM1
compute CalcM1 = %xcol(psi*INV(%identity(3)-psi*phi(1)),1)
compute m1=CalcM1(1)
compute m2=CalcM1(2)
compute m3=CalcM1(3)
end CalcM1
dec frml cf
frml cf = ||(1+m1),1|$
m2-m1,0|$
m3-m2,0|$
-m3,0|$
1,0|$
-1,0||
dec frml[rect] phi
frml phi = ||phi1,phi2,phi3|$
1,0,0|$
0,1,0||
nonlin phi1 phi2 phi3 sigdeltasq sigetasq psi
compute sigdeltasq =0.1,sigetasq =0.1,psi=0.1,$
sw=%diag(||sigdeltasq,sigetasq||)
dlm(start=CalcM1(),method=bfgs,a=af,c=cf,f=f, $
sw=%diag(||sigdeltasq,sigetasq||), y=||dlnrsi,dlnrgl||,TYPE=FILTER)
when i run it ,the error message :
## SX1. Identifier CALCM1 is Already in use as a(n) User Function
i want to know what problem will be exist in my programm!
thanks