DIGITS: Stata module to examine digit preferences in numeric variables
Richard J. Atkins ()
Additional contact information
Richard J. Atkins: London School of Hygiene and Tropical Medicine
Statistical Software Components from Boston College Department of Economics
Abstract:
This package contains three independent programs that provide a high level of flexibility in exploring digit preferences. digit is an extension to the Stata egen command. It can be used with egen to create a new variable containing the digits at a certain decimal place of an existing variable. Options are available to specify the decimal position that you wish to examine as well as the rounding that should be applied to the variable when extracting this digit. The resulting variable can be tabulated and used in goodness-of-fit tests as required. This is useful for in-depth exploration of digit preferences. digituse cross-tabulates digits against all the decimal places available in a variable, reporting results as percentage distribution of digits at each decimal place. This is useful for initial visual inspection of digit preferences. zerouse can be used to examine the pattern of use of the 'zero' digit within a variable. The range of decimal places examined can be defined as can the 'zero' digit. Results can be tabulated against other variables or stored in a new variable for later use.
Language: Stata
Requires: Stata version 8
Keywords: digit preferences; decimal position; zero (search for similar items in EconPapers)
Date: 2006-03-16, Revised 2006-06-12
Note: This module should be installed from within Stata by typing "ssc install digits". The module is made available under terms of the GPL v3 (https://www.gnu.org/licenses/gpl-3.0.txt). Windows users should not attempt to download these files with a web browser.
References: Add references at CitEc
Citations:
Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/_/_gdigit.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/d/digit.hlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/d/digituse.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/z/zerouse.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/d/digituse.hlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/z/zerouse.hlp help file (text/plain)
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:boc:bocode:s456709
Ordering information: This software item can be ordered from
http://repec.org/docs/ssc.php
Access Statistics for this software item
More software in Statistical Software Components from Boston College Department of Economics Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA. Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().