Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: how to format tables with multiple variables


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: how to format tables with multiple variables
Date   Sun, 1 Jul 2012 13:38:49 +0100

The graph might be something like

graph dot (mean) Coloc , over(host) over(Bank)

The table could be something like

egen group = group(Bank host) , label
tab group, su(Coloc)

or use -table- instead.

On Sun, Jul 1, 2012 at 1:16 PM, Carlos Pinheiro
<carlosm_pinheiro@hotmail.com> wrote:

I have a Bank-host-year dataset with various variables.

I am trying to create a table in Stata 12 with 2 string variables
(Bank, host) in rows and the average of a numerical variable (Coloc)
across years in a column.

And also a graph with 'host' in x-axis, 'Coloc' in y-axis and points
with 'Bank'.
*
*   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   |   Site index