by Gilbril » Thu Sep 02, 2010 1:51 pm
Thanks very much! Does that actually mean that I cannot test for autocorrelation in a nonlinear system? Or is it adequate to test for each of the two equations separately (I estimate two equations). I tried it for one equation (I could use the estimated values from the system as well)
statistics z
compute lamda1 = %mean,gamma1=2.0, lamda1 = %mean
compute scalef=1.0/sqrt(%variance)
dec vector abcd
nonlin mu0 mu1 alpha1 alpha2 gamma1 lamda1
frml transfct1 = 1-exp(-scalef^2*gamma1*(z(T-2)-lamda1)^2)
frml strgl1 x = mu0 + alpha1*(z(T-1)-lamda1)+ transfct1(T)*(mu1+alpha2*(z(T-1)-lamda1))
compute mu0=0,mu1=0,alpha2=0.5,alpha1=1
nlls(frml=strgl1,subiters=3000,robust,lwindow=neweywest,lags=6,[color=#FF0000]derives=Vector) x gstart gend residuals
set k = residuals(t-1)
linreg residuals
# k VECTOR(2) VECTOR(3) VECTOR(4) VECTOR(5)
[/color]
The problem is that autocorrelation actually seems to exist as the coefficient for the once lagged residuals is highly significant which also results in overall significance for the tests for higher order. The problem is that I cant get rid of this problem. Including x on the right hand side would mean that I have multicollinerity on the right hand side.
But iam also quite confused as I use the robust command and the newey west command combined with the lags=6 which in my understanding should account for possible autocorrelation. Is there any other possibility that I can handle with this problem when estimating the original system?
Ialso tried to get the residuals for the nonlinear system but it didint work. I used the following code
nlsystem(parmset=P,iters=2000,subiters=3000,robust,lwindow=neweywest,lags=4,derives=Vector) gstart gend strgl1 strgl2 residuals