You are on page 1of 1

National Public Health Institute, Finland

Speeding up the univariate part of cohort and case control


analyses in Stata the cstable and cctable commands
Peter Makary (1,2), Gilles Desve (3), J. Ollgren (2), M.J. Virtanen (2)
1. European Programme for Intervention Epidemiology Training
2. National Public Health Institute (KTL), Helsinki, Finland
3. EpiConcept, Public Health Information Systems, France

Background
Outbreaks For the cohort and case control analysis we use Stata (Texas, USA). Usually the first step is the
univariate analysis. There might be several exposure variables (e.g. food items), and we like to summarize
the univariate findings in one table. Doing this was time consuming. The newly developed Stata commands
help to speed up the univariate part of the analysis.

Univariate analysis
Before After
Command cs, cc Command cstable, cctable
Cohort or case control Cohort or case control
One command one analysis One command unlimited number of analyses
One analysis one table (Figure 1) One analysis one row
All results in one ordered summary table (Figure 2)
Figure 1. Result tables of command cs Several sorting possibilities
(e.g. by risk ratio, attack rate, p-value)
Easy copy-paste of the whole table
Results can be saved as Stata data file
Figure 2. Result table of command cstable

How to use
The syntax is:
cstable [varlist] [if] [in] [, options]
The first variable is the dependent (case) variable.
Example:
cstable case tiramisu mousse beer icecream, rr
(Printed helpfile is on the other side of the handout)

Are you interested?


You can install it from the Internet. Type in the Stata command
window:
net from http://www.epiconcept.fr/stata
(Other epi commands are also available from this site)
www.ktl.fi

Or search the Internet in Stata by typing:


findit cstable
findit cctable
Contact: peter.makary@ktl.fi
g.desve@epiconcept.fr

You might also like