Statalist


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

Re: st: AW: estpost tabstat


From   Ben Jann <ben.jann@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: AW: estpost tabstat
Date   Tue, 14 Apr 2009 10:51:21 +0200

The -estout- package has been updated on SSC. -estpost tabstat- now
allows -columns(stats)-. To install the update, type

 . ssc install estout, replace

or use the -adoupdate- command.
ben

On Mon, Apr 6, 2009 at 3:59 PM, Ben Jann <ben.jann@gmail.com> wrote:
> As Martin notes, using -stats- (as opposed to -statistics- or an
> abbreviation thereof)  as an argument to the -columns()- option is an
> undocumented feature of -tabstat-. The feature is not supported by
> -estpost tabstat- because -columns()- has no effect on how -tabstat-
> returns its results and, hence, -estpost tabstat- has to interpret
> -columns()- and take steps to rearrange results accordingly. When
> implementing this I was not aware of the undocumented -stats-
> argument. I'll try to put together an update which adds support for
> -columns(stats)-.
> ben
>
> On Mon, Apr 6, 2009 at 2:12 PM, Martin Weiss <martin.weiss1@gmx.de> wrote:
>>
>> <>
>>
>> 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/



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