Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: question from a new user


From   Austin Nichols <[email protected]>
To   [email protected]
Subject   Re: st: question from a new user
Date   Fri, 10 Feb 2006 11:50:10 -0500

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/



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