[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: New package for digit preference analysis on SSC
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
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
http://www.richardatkins.co.uk/statistics/statabits.htm 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: