st: AW: estpost tabstat

<>
I think "stats" should not be an abbreviation for "statistics" in official
-tabstat-. At least the documentation for the -columns()- option could make
the issue clearer. -tabstat.ado- checks for the "columns" local btw lines 41
and 57, and allows "stats" in line 50 as a specification of "statistics" in
an "else if" once it is past the usual -substr()- check for abbreviations of
"variables" or "statistics".
The help file for -tabstat- only mentions that "(stats() is a synonym for
statistics().)" under "statistics", but not under "columns"...
How -estpost- handles the issue is harder to find out. It gets passed thru
to a quiet call to official -tabstat- but I am having a hard time trying to
see what it does next to format its own output- which probably need not
match the one delivered by -tabstat-
HTH
Martin
-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Richard Ochmann
Gesendet: Montag, 6. April 2009 12:43
An: statalist@hsphsun2.harvard.edu
Betreff: st: estpost tabstat
...
I stumbled over this issue:
***
sysuse auto
***
While
***
estpost tabstat price mpg, col(stat)
***
returns as expected:
Summary statistics: mean
for variables: price mpg
| e(mean)
-------------+-----------
price | 6165.257
mpg | 21.2973
***
estpost tabstat price mpg, col(stats)
***
returns:
Summary statistics: mean
for variables: price mpg
| e(price) e(mpg)
-------------+----------------------
mean | 6165.257 21.2973
Given that both
***
tabstat price mpg, col(stat)
tabstat price mpg, col(stats)
***
do the desired:
variable | mean
-------------+----------
price | 6165.257
mpg | 21.2973
------------------------
I am surprised finding the above.
best, rich
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/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/statalist/faq
* http://www.ats.ucla.edu/stat/stata/