Statalist


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

st: RE: re: problem using predictnl after obtaining non-linear estimates


From   Lopa Chakraborti <lchakraborti@arec.umd.edu>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: RE: re: problem using predictnl after obtaining non-linear estimates
Date   Sun, 26 Oct 2008 10:08:36 -0400

Upon inserting the @ symbol it gives me a error message:

nl wqfinalnoseasonfinal3 @ downstreamwaterqualityfoia04, nparameters(90)
@ invalid name
r(198);

Is it because I work with Stata 8.2 version?
thanks much for your advise
________________________________________
From: owner-statalist@hsphsun2.harvard.edu [owner-statalist@hsphsun2.harvard.edu] On Behalf Of Kit Baum [baum@bc.edu]
Sent: Saturday, October 25, 2008 8:09 PM
To: statalist@hsphsun2.harvard.edu
Subject: st: re: problem using predictnl after obtaining non-linear estimates

< >
The help for -nl- function evaluator programs states that

    * For function evaluator program version, you must specify
parameters(namelist) or nparameters(#), or both.

You have not done that. I am surprised that Stata does not generate a
syntax error.

Furthermore the invocation of -nl- should be

nl wqfinalnoseasonfinal2 @ downstreamwaterqualityfoia04  etc.

The at sign (@) is not optional.

If you specify parameters() or nparameters() properly, then -nl- (like
any estimation command) should return e(b) and e(V), which are needed
by -predictnl-.

See what happens when you follow the syntax specified in -help nl-.


Kit Baum, Boston College Economics and DIW Berlin
http://ideas.repec.org/e/pba1.html
An Introduction to Modern Econometrics Using Stata:
http://www.stata-press.com/books/imeus.html


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

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index