Statalist The Stata Listserver


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

RE: st: question from a new user


From   "Rajesh Tharyan" <[email protected]>
To   <[email protected]>
Subject   RE: st: question from a new user
Date   Fri, 10 Feb 2006 17:09:35 -0000

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/



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