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: nl nonlinear regression


From   ssteffen <ssteffen@princeton.edu>
To   statalist@hsphsun2.harvard.edu
Subject   st: nl nonlinear regression
Date   Sun, 22 Apr 2012 23:12:26 -0400

Dear Statalistserv,

for the nonlinear regression I am trying to run, I keep getting:
error #198 occurred in evaluating expression
invalid syntax
starting values invalid or some RHS variables have missing values

I know that my RHS variables are fine, because I can run a normal regression with them without a problem.
I am not so sure what the "starting values invalid" could mean.
Here is the equation I am trying to estimate:

return local eq "`lyt' = (1-exp(-25*{b0}))*({b1}/(1-{b1}-{b2}))*`lsk'+(1-exp(-25*{b0}))*({b2}/(1-{b1}-{b2}))*`lsh'-(1-exp(-25*{b0}))*(({b1}+{b2})/(1-{b1}-{b2}))*`lngd'+exp(-25*{b0})*`ly0'"

Thanks for help,

Sebastian

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