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]
st: RE: byable returns : return list after by prefix
From
Joe Canner <[email protected]>
To
"[email protected]" <[email protected]>
Subject
st: RE: byable returns : return list after by prefix
Date
Thu, 22 Aug 2013 21:26:08 +0000
Laszlo,
As per the -sum- documentation: the -meanonly- option "suppresses the display of results and calculation of the variance." So, you are not supposed to be seeing any output.
Someone else can probably explain this better, but my understanding is that -bys- essentially just repeats the command (-sum- in this case) for every level of the by variable, so it stands to reason that only results from the last execution of -sum- (i.e., the last level of the by variable) would be available in r(). I doubt that adding -bys: - to the -sum- command suddenly makes -sum- smart enough to store the results in a matrix.
I haven't been following your previous questions on this issue very carefully, so maybe you've already covered this territory...but can you use a loop to do separate executions of -sum- for each level of the by variable and capture the results after each execution?
Regards,
Joe Canner
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of László Sándor
Sent: Thursday, August 22, 2013 5:05 PM
To: [email protected]
Subject: st: byable returns : return list after by prefix
Hi all,
I am at a loss how to use the results of a -bys v1: sum v2, meanonly- run (try it on sysuse auto). -return list- shows only the stats from the last category. No results are displayed with the run either. Is there a trick, or this is a lost cause?
Thanks,
Laszlo
*
* 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/
*
* 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/