Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: specification test after non-linear regression


From   Cindy Gao <[email protected]>
To   [email protected]
Subject   st: specification test after non-linear regression
Date   Wed, 16 Jun 2010 14:58:59 +0000 (GMT)

Dear all,

I am trying to find out how to do a specification test (e.g. to test whether specification is correct, omitted variables etc) after running a non-linear least squares regression. My regression command is of the form:

- nl (depvar = {b0} + {b1}*var1+ indicator*({b2} + {b3}*var1) + {b4}*var2 + {b5}*var3) -

(where depvar is the dependent variable, var1-3 are explanatory variables, and indicator is an indicator variable). (This can also be done by going to the Statistics item on the menu, then linear models and related, then other, nonlinear least squares). The regression runs successfully and I obtain my results.

The problem comes when I try to run the specification test immediately afterwards. I try to run the Ramsey specification test  ( - estat ovtest - ) but get the following error message:

invalid subcommand ovtest
r(321);

I have tried even with alternative nonlinear regressions and get the same outcome. Does this-ovtest-  command not work in general after running a nonlinear regression? How then to do a specification test in any other way? I really need to do one.

Thank you I greatly appreciate your assistance.

yours sincerely
Cindy



      


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


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index