Statalist


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

st: AW: estpost tabstat


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: AW: estpost tabstat
Date   Mon, 6 Apr 2009 14:12:58 +0200

<> 

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: [email protected]
[mailto:[email protected]] Im Auftrag von Richard Ochmann
Gesendet: Montag, 6. April 2009 12:43
An: [email protected]
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/



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