# Re: st: RE: Summary statistics table problem

 From George Hoffman <[email protected]> To <[email protected]> Subject Re: st: RE: Summary statistics table problem Date Tue, 28 Oct 2008 06:58:08 -0500

```Martin -
thanks, but not quite.
Tabstat var1 var2 ... Varn, stat(mean) by(byvar) either:
col(var): yields columns of the var1, var2, with the by(byvar) as rows
Col(stat): yields sequential single columns of output for each var1..varn

I'm looking for the by(byvar) to appear in columns side by side, with rows
for var1...varn

george

On 10/28/08 3:13 AM, "Martin Weiss" <[email protected]> wrote:

> -tabstat var1 var2, statistics( mean ) by(Hour6) nototal columns(variables)-
> ?
>
>
> HTH
> Martin
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of George Hoffman
> Sent: Tuesday, October 28, 2008 4:18 AM
> To: [email protected]
> Subject: st: Summary statistics table problem
>
> This should be simple, but I can't find a straightforward way to do this.
> Xt  dataset, with hours 1-48 for time, also summarized by hour6 (1-6,
> 7-12,...)
> Many row variables.
>
> I want a table of means by hour6:
>
> Var         Hour6
>             1       2       3       4       5       6       7       8
> var1        50      55      55      57      60      62      61      57
> var2        47      34      23      12      6       5       7       6
> Etc
>
> ?? Thank you,
> George hoffman
>
>
> *
> *   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/
>
> *
> *   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/

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