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: RE: specification test after non-linear regression


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: specification test after non-linear regression
Date   Wed, 16 Jun 2010 16:07:00 +0100

The help for -nl postestimation- tells you what is available after -nl-. 

It doesn't include this kind of test, which doesn't make much sense with -nl- models in general. 

Nick 
[email protected] 

Cindy Gao

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.


*
*   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