Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Performing operations on the results of a non-linear regression


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: Performing operations on the results of a non-linear regression
Date   Thu, 31 Oct 2002 02:06:19 -0000

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index