Statalist


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

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


From   "Nick Cox" <[email protected]>
To   <[email protected]>
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 
[email protected] 

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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index