
From  Oleksandr Shepotylo <shepotil@econ.umd.edu> 
To  statalist@hsphsun2.harvard.edu 
Subject  Re: st: RE: how to generate a variable using the estimation results 
Date  Fri, 03 Nov 2006 17:50:06 +0200 
This sounds like a bad idea. The parameter can be saved as a scalar or a local macro, but using a variable for
the same number again and again is usually unnecessary.
Still, there might be a good idea, or you might insist, so if so try
gen rho = _b[/rho]
but consider also
scalar rho = _b[/rho]
Nick n.j.cox@durham.ac.uk
Oleksandr Shepotylo
After non linear estimaition which estimates parameters rho and sigma of the following form*
nl (z=h1*{rho}+h2*{rho}^2+h3*{sigma2}), in(rho 0.5 sigma2 1) iterate(200)
I want to generate a variable rho that takes the value of the estimated parameter {rho}
gen rho=???
* 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/
* * 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 