NLS: convergence / starting values
Posted: Fri May 16, 2014 12:50 am
Hi,
i am estimating an Error Correction model using NLS (see attached workfile):
for %industry 15 25 30 45 50 55 63 64 71 74 81 85
equation ass3nls_{%industry}.ls(cov=hac, c=1e-10, m=10000) d(omegahigh{%industry})=c(1)+c(2)*d(wagepremium{%industry})+c(3)*d(logkint{%industry})+c(4)* ((omegahigh{%industry}(-1))-c(5)*(wagepremium{%industry}(-1))-c(6)*(logkint{%industry}(-1))-c(7)*@trend)
next
But, if you look at the equation Ass3NLS_15, it has not converged and the estimates do not make sense. If I increase the number of iterations (m) it does not help. I have also tried to change the convergence criterion and the initial parameter values.
If I however manually open the equation object, click the estimation button and press ok, the equation is reestimated and it converges. How should i change the code above so that the NLS estimation converge in one step?
Sincerely
Thomas von Brasch
i am estimating an Error Correction model using NLS (see attached workfile):
for %industry 15 25 30 45 50 55 63 64 71 74 81 85
equation ass3nls_{%industry}.ls(cov=hac, c=1e-10, m=10000) d(omegahigh{%industry})=c(1)+c(2)*d(wagepremium{%industry})+c(3)*d(logkint{%industry})+c(4)* ((omegahigh{%industry}(-1))-c(5)*(wagepremium{%industry}(-1))-c(6)*(logkint{%industry}(-1))-c(7)*@trend)
next
But, if you look at the equation Ass3NLS_15, it has not converged and the estimates do not make sense. If I increase the number of iterations (m) it does not help. I have also tried to change the convergence criterion and the initial parameter values.
If I however manually open the equation object, click the estimation button and press ok, the equation is reestimated and it converges. How should i change the code above so that the NLS estimation converge in one step?
Sincerely
Thomas von Brasch