Statalist The Stata Listserver

[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: New package for digit preference analysis on SSC

From   "Richard Atkins" <>
To   <>
Subject   st: New package for digit preference analysis on SSC
Date   Thu, 16 Mar 2006 16:40:42 +0000

A new package 'digits' has been made available on SSC and is also
available via my homepage.
The package contains three functions written to help with exploring the
patterns of middle and terminal digit preferences. 

digit:  is an egen extension function that generates a new variable
containing the digits extracted from a certain decimal place of an
existing variable.

digituse: cross-tablulates all digits against each decimal place to
provide a succinct overview of digit preferences in a variable.

zerouse: cross-tabulates and saves a 'mask' variable highlighting the
patterns in which a particular digit appears within a variable. This
would typically be used to examine zero preference (hence 'zerouse') but
you can tell the function which digit to treat as the special one.

For further information 'ssc describe digits' or visit which has
html versions of the helpfiles including examples of each function in

Richard J. Atkins
Department of Epidemiology and Population Health
London School of Hygiene and Tropical Medicine
Keppel Street, London WC1E 7HT

Tel: 020 7927 2968  

*   For searches and help try:

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