Hi there,
I want to apply an ESTR model within a nonlinear system. To be more precise I have two equations whch I would like to estimate jointly bei NLS. I tried to use the following code
compute gstart = 1973:01
compute gend = 2009:12
set z = LJ_US-e
set d = z-z(1)
set y = e-e(1)
set x = LJ_US-LJ_US(1)
compute lamda1 = %mean, gamma=2.0 , lamda2 = %mean
compute scalef=1.0/sqrt(%variance)
nonlin(parmset=P) mu0 mu1 alpha1 alpha2 gamma1 mu1 alpha3 alpha4 gamma2
frml transfct1 = 1-exp(-scalef^2*gamma1*(z{2}-lamda1)^2) - Definition Transistion functions
frml transfct2 = 1-exp(-scalef^2*gamma1*(z{2}-lamda2)^2)
frml strgl1 y = mu1 + alpha3*d(T-1)+ (mu1+alpha4*transfct1(T)) - Equation 1
frml strgl2 x = mu0 + alpha1*d(T-1)+ (mu1+alpha2*transfct2(T)) - Equation 2
compute mu0=0,mu1=0, alpha1=alpha2,gamma=2, lambda1=lamda2=0,alpha3=alpha4 - Initial values
nlsystem(parmset=P,iters=1000,subiters=300,lwindow=neweywest) gstart gend
The problem is that the procedure isnt working. Iam not quite sure about the last line of the code. After running I get the following output
Variable Coeff Std Error T-Stat Signif
*******************************************************************************
1. MU0 0.000000 0.000000 0.00000 0.00000000
2. MU1 0.000000 0.000000 0.00000 0.00000000
3. ALPHA1 0.000000 0.000000 0.00000 0.00000000
4. ALPHA2 0.000000 0.000000 0.00000 0.00000000
5. GAMMA1 0.000000 0.000000 0.00000 0.00000000
6. MU1 0.000000 0.000000 0.00000 0.00000000
7. ALPHA3 0.000000 0.000000 0.00000 0.00000000
8. ALPHA4 0.000000 0.000000 0.00000 0.00000000
9. GAMMA2 0.000000 0.000000 0.00000 0.00000000
If I write nonlin mu0 mu1 alpha1 alpha2 gamma1 mu1 alpha3 alpha4 gamma2 in the beginning
and nlsystem(frml=strgl1,iters=1000,subiters=300,lwindow=neweywest) gstart gend
in the end I get the message
SIGMA Is Singular/Not PSD At Row 1. Too Many Equations for Data Set Size?
I hav learnt from the Handbook that the dependent varaible has to be included in the nonlin command. However it is not quite clear how to specify the last row. I also tried nlsystem(frml=strgl1,iters=1000,subiters=300,lwindow=neweywest) / x y gstart gend but got the output "## SX22. Expected Type FRML, Got SERIES Instead>>>>dow=neweywest) / x <<<<"
However, I have no idea how to solve this problem as i don`t know how to specify the last row. Any help will be appreciated. Thanks you!!!!!
