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

Re: st: Re: saving memory local vs usual variable

From   Maarten buis <[email protected]>
To   [email protected]
Subject   Re: st: Re: saving memory local vs usual variable
Date   Fri, 3 Oct 2008 17:38:11 +0100 (BST)

--- Ashim Kapoor wrote:
> BUT what if it is something which is NOT generated by a summary
> statistic . Like say the 2nd mode  ( assuming a variable has 2
> modes). Can I directly store it into a local variable ?

In Stata there are variables and local macros (locals for short) but
there is no such thing as a local variable. Keeping those appart can
safe you a lot of confusion. 

-summarize- is not the only command that returns results. Most Stata
commands return results. To see what is left behind you can type 
-return list- (or -ereturn list- after estimation commands). The trick
is to find a command that leaves the stuff you want behind in returned
results. If there is no such command you can often derive it from the
stuff that is returned. 

Modes are pretty tricky things, there is stuff out there that does do
some estimation on those, but if you don't really really need I would
stay away from that. 

-- Maarten

Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room N515

+31 20 5986715

*   For searches and help try:

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