You are somewhat limited with the r( ) and e( ) constructs, but this
is not one of those times:
. gen a=e(N) * e(r2)
does work.
In any case, `= ' always works, e.g.
. gen a=`=e(N)'*`=e(r2)'
(that's left quote, equal sign, hm, right quote).
On 2/10/06, Rajesh Tharyan <[email protected]> wrote:
> Hi all,
>
> Is there a way to generate a new variable with those scalars instead of
> just displaying it??
>
> For example gen a=e(N) * e(r2) doesn't work..
>
>
> Rajesh
*
* 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/