Nevo, Dorit
> I am trying to do some calculations using the results of a
> non-linear
> regression. I wrote the nl function but I am not sure how I
> can get the
> coefficients as variables that I can use in calculations.
> I would like to write a program that runs the nl regression
> and than does
> some calculations with the regression coefficients and
> returns the value of these calculations.
>
Put coefficients in a vector after fitting:
. mat b = e(b)
or
. scalar foo = _b[foo]
for varname -foo-.
Nick
[email protected]
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/