I want to run the following model as a non-linear regression:
nl (rx={rg}+{rg*(1+exp(-gamma*(moveave-ci)))^-1}+{gfc})
where rx is dependent variable. when I run this model Stata gives the error code: r(480); starting values invalid or some RHS variables have missing values
As a second option, I solved the non-linear function outside the equation by having a new variable fm={rg*(1+exp(-gamma*(moveave-ci)))^-1} and run again:
nl (rx={rg}+{fm}+{gfc})
Now I get the results with omitted values for fm.
I don't know where is my mistake. Any help will be greatly appreciated.
Best Regards
David
--
David Ashcraft
Bangor University
Bangor Gwyned LL57 2DG
*
* 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/