-------------------------------------------------------------------------------
help for tabcount7
-------------------------------------------------------------------------------

Tabulate frequencies, with zeros explicit

tabcount7 varname [if exp] [in range] , values(value list)

by ... : may be used with tabcount7; see help by.

Description

tabcount7 tabulates frequencies. Its one distinctive feature is that zero frequencies -- of one or more specified values -- are shown explicitly.

tabcount7 was called tabcount. Stata 8 users are recommended to use the much more general tabcount from SSC.

Options

values(value list) specifies a list of values whose frequencies (zero or more) are to be shown. Numeric values may be (strictly, must be) shown as a numlist. String values containing spaces or double quotes should be in double quotes or compound double quotes. This is a required option.

Examples

. tabcount7 rep78, v(1/5)

. bysort foreign: tabcount7 rep78, v(1/5)

Author

Nicholas J. Cox, University of Durham, U.K. n.j.cox@durham.ac.uk

Acknowledgements

Kit Baum made many useful comments on a more general version of this problem.