Statalist


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

st: RE: -tabstat- with c(count) format options


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: -tabstat- with c(count) format options
Date   Thu, 15 Oct 2009 17:51:41 +0100

I seem to recollect arguing something similar, evidently to no effect. 

However, "always" is a little strong, as -tabstat- will accept analytic
weights, which need not be integers. 

Nick 
n.j.cox@durham.ac.uk 

Jeph Herrin

So this is just a petty complaint more than anything,
but shouldn't

  tabstat myvar, c(count mean) format

not apply the -format- option to the -count- result?
Consider:

*-----------------------*
sysuse gnp96
tabstat date, s(count min max) format c(s)
*-----------------------*

which produces


     variable |         N       min       max
-------------+------------------------------
         date |    1995q3    1967q1    2002q2
--------------------------------------------

Which isn't very useful. Seems like the "count" stat
should always be formated as an integer.


*
*   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