I need your help with my GMM estimation of a nonlinear rational expectation model. The paper that talks about this estimation method is Hansen & Singleton (1982). I am so glad to find the example in RATS User's Guide page 137. I followed the steps there. However, I could not have any results. There were no error message. It seemed there were no estimation going on. The model and other details are in the attached word document; the data are in the excel; I also attach my codes and results here. Thank you very much for any suggestions of my mistakes or corrections!
Code: Select all
calendar(q) 1986:1
open data "E:\00RESEARCH\1With Randy\Risk Premium\OnFarm1.xls"
*
data(format=xls,org=columns) 1986:1 2002:4 St Pr ProdC StC Sale PPIiv tiv
*
set temp1 = Pr*Sale*((Sale+2*St)/(Sale+St)^2)
set temp2 = (Pr*Sale)/(Sale+St)
*
nonlin Disct TrC RAa RAb
frml h = Disct*0.97*(Pr(t)-TrC*temp1(t))*exp(RAa*((Pr(t)-TrC*temp2(t))*sale(t)-ProdC(t)-StC(t))+RAb*((Pr(t)-TrC*temp2(t))*sale(t)-ProdC(t)-StC(t))^2)$
-(Pr(t-1)-2*TrC*temp2(t-1)+0.09)*exp(RAa*((Pr(t-1)-TrC*temp2(t-1))*sale(t-1)-ProdC(t-1)-StC(t-1))+RAb*((Pr(t-1)-TrC*temp2(t-1))*sale(t-1)-ProdC(t-1)-StC(t-1))^2)
compute Disct = .99,TrC = 0.01,RAa = -1,RAb = -1
*
instruments constant PPIiv tiv Pr{1 to 4}
nlls(inst,frml=h,optimal) *Code: Select all
Nonlinear Instrumental Variables - Estimation by Gauss-Newton
Convergence in 1 Iterations. Final criterion was 0.0000000 <= 0.0000100
Quarterly Data From 1987:01 To 2002:04
Usable Observations 64
Degrees of Freedom 60
J-Specification(6) 0.0000
Significance Level of J 1.0000000
Variable Coeff Std Error T-Stat Signif
************************************************************************************
1. DISCT 0.990000000 0.000000000 0.00000 0.00000000
2. TRC 0.010000000 0.000000000 0.00000 0.00000000
3. RAA -1.000000000 0.000000000 0.00000 0.00000000
4. RAB -1.000000000 0.000000000 0.00000 0.00000000