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: Nonlinear regression syntax


From   David Ashcraft <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: Nonlinear regression syntax
Date   Sat, 19 Jan 2013 03:12:01 -0800 (PST)

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/


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