Hi sorry,
I apologise..it does work..earlier when I issued the command it came up with
varlist not allowed.
Regards
rajesh
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Austin Nichols
Sent: 10 February 2006 16:50
To: [email protected]
Subject: Re: st: question from a new user
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/
*
* 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/