Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Using stored results


From   Maarten Buis <[email protected]>
To   [email protected]
Subject   Re: st: Using stored results
Date   Wed, 11 Sep 2013 11:21:33 +0200

tabstat var1 var2 var3, stat(mean) save
matlist r(StatTotal)

Hope this helps,
Maarten


On Wed, Sep 11, 2013 at 10:58 AM, J. J. W. <[email protected]> wrote:
> Dear all,
>
> I have a small question about using stored results. Suppose I do the following:
>
> sum var1 var2 var3
>
> I will only get stored results from the last variable, which is in
> this case var3. I am wondering whether there is a way to retrieve them
> from var1 and var2 too.
>
> I know I can do the following:
>
> sum var1
>
> disp r(mean)
>
> sum var2
>
> disp r(mean)
>
> sum var3
>
> disp r(mean)
>
> I am wondering whether is another way, which is easier, more elegant.
>
> Thanks in advance!
>
> Yours sincerely,
>
> Jun Jie
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/statalist-faq/
> *   http://www.ats.ucla.edu/stat/stata/



-- 
---------------------------------
Maarten L. Buis
WZB
Reichpietschufer 50
10785 Berlin
Germany

http://www.maartenbuis.nl
---------------------------------
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index