Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: summary statistics


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: summary statistics
Date   Wed, 11 Feb 2004 17:52:30 -0000

In essence, you must prepare 
your percent variable upstream
of either -table- or -tabstat-. 
But if you do that, it is usually 
easier to use -tabdisp- or -list- 
to display the percents. 

There are various ways to proceed, 
and indeed as said it is often easier 
to work independently of -table- or -tabstat-. 

One is by preparing a reduced dataset 
by using Roger Newson's -pcontract- or
-xcontract-. That is aimed at doing the 
calculations; the display is up to you. 

An alternative is to use -groups-, which 
does calculate and display the percents, 
but in list form. 

All these extras are on SSC. 

A more general issue is this: A single 
command to do almost all conceivable 
tables would presumably be massively 
complicated. (Or you might say that it 
exists: it is called Stata.) The 
alternative we have is a variety of 
tabulation commands, each focused in 
particular ways, and each with limits. 
Naturally neither situation 
is optimal from all points of view. 

There is further discussion in Stata 
Journal 3(3) and 3(4) 2003. 

Nick 
[email protected] 

Anuja Saurkar
 
> Tabulate allows for row and column percentages to be
> calculated. Is there a way to do the same with table
> and tabstat?

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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