Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: could not calculate numerical derivatives -- flat or discontinuous region encountered


From   Usman Gilani <ujgilani@gmail.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: could not calculate numerical derivatives -- flat or discontinuous region encountered
Date   Sun, 30 Dec 2012 11:35:36 +0000

Dear members,
I'm trying to run the following non-linear regression using gmm in state 12. but getting the error message 
and secondly do i have to tell stata that i'm doing the estimation using panel data however before running this equation i'm using this command

xtset panelvar timevar

and after that i'm running this equation.

gmm (({a0}*{a1}*w1*DP+(1-{a0}*DP)*lr1+{a0}*{a2}*DP*w2+{a0}*{a3}*DP*w3+{a0}*{a4}*DP*y1+{a0}*{a
> 5}*DP*y2+{a0}*{a6}*DP*y3)), xtinstruments(w1 w2 w3 y1 y2 y3 DP lr1, lags(1/2)) winitial(xt L)
warning: 472 missing values returned for equation 1 at initial values

ERROR message:

"Step 1
could not calculate numerical derivatives -- flat or discontinuous region encountered
could not calculate numerical derivatives -- flat or discontinuous region encountered
r(430);"

any suggestions how to avoid it or what changes should i make to my data. I have a panel data for 80 firms over the period of 20 years. 

thanks in advance.

regards
Gilani
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index