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

RE: st: Benford's Law


From   "Steichen, Thomas J." <[email protected]>
To   <[email protected]>
Subject   RE: st: Benford's Law
Date   Wed, 30 Nov 2005 10:03:50 -0500

Substitute a varname below...

gen str1 c1 = substr( ltrim( subinstr( subinstr(string( varname ),"."," ",1) ,"-"," ",1)) ,1,1)

> >Michael wrote:
> >Does anyone have an easy way to identify the leading digit for each 
> >entry in a diverse data set other than a series of 
> inequality filters?
> >--------------------------------------------------

-----------------------------------------
CONFIDENTIALITY NOTE: This e-mail message, including any attachment(s),
contains information that may be confidential, protected by the
attorney-client or other legal privileges, and/or proprietary non-
public information. If you are not an intended recipient of this
message or an authorized assistant to an intended recipient, please
notify the sender by replying to this message and then delete it from
your system. Use, dissemination, distribution, or reproduction of this
message and/or any of its attachments (if any) by unintended recipients
is not authorized and may be unlawful.


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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