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

st: RE: custom table of summary stats


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: custom table of summary stats
Date   Sun, 13 Feb 2005 21:05:08 -0000

I am afraid that a custom table like
this requires a custom program. I
doubt that any of the standard commands 
will get you far. 

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

Garrard, Wendy M.
  
> I need a rather simple table of summary stats, but having 
> trouble identifying which of the many Stata commands 
> (tabstat, tab, tabi, tab1, etc.) will do what I need.  
> Please, someone point me in the right direction.
>  
> The data is for meta-analysis. I am trying to output 
> descriptives for several categorical variables, and the 
> summary statistics per category reflect the count of studies, 
> % of total studies, sum of sample n's, and % of total sample 
> N that contribute to each category.  The % of subjects is the 
> element that is making this tricky. There are many 
> categorical variables, so I want to avoid doing this as a 
> piecemeal caclulation.
>  
> Categ. Var.     Study(n)   Study(%)   Subj.(n)   Subj.(%)
>                 (N=100)               (N=1,000)
> ---------------------------------------------------------
> Age
>    Child          50        .50          400       .40
>    Teen           50        .50          600       .60
> Family SES   
>    Low            35        .35          400       .40
>    Middle         55        .65          480       .48
>    High           10        .10          120       .12
> etc..............................   
>   

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