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

Re: st: n-way tabulation

From   Joseph Coveney <>
To   Statalist <>
Subject   Re: st: n-way tabulation
Date   Tue, 01 Nov 2005 18:27:42 +0900

Lawrence Hanser wrote:

Is it possible to do greater than two-way cross-tabulations?  For
example, if I have religion (10 categories), gender (2 categories),
age (4 categories), and ethnicity (6 categories), is there a simple
command to get the counts for each of the 480 cells?


You can get the cross-tabulation counts by using

contract religion gender age ethnicity
list, noobs separator(0)

The cell counts are in the variable _freq.

There might be better ways, but none come to mind right away.

Joseph Coveney

*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index