No wildcards required since string variables can be used in ranges:
tab codes if codes>="O140" and codes<="O150"
or
tab codes if inrange(codes,"O140","O150")
Dan Blanchette
Carolina Population Center UNC-CH
[email protected]
>st: How to use wildcards
>From Rodrigo Brice�o <[email protected]>
>To "Statalist" <[email protected]>
>Subject st: How to use wildcards
>Date Tue, 24 Feb 2004 13:06:57 -0600
>
>Hello friends of the stata list. I have a database with 4 digits codes, for
>example: O140 where the first character is a letter. Those codes are strings
>and I want to know how to tabulate frequencies of some codes using
>wildcards. For example I want to get the total number of codes who are
>between 0140 and 0150, what can I do?
>Thanks
>
>
>________________________
>
>Rodrigo Brice�o
>Consultor
>Sanigest Internacional
>Telf. Oficina: (506) 280-5457
>Fax: (506) 234-1486
>Celular: (506) 357-4535
>www.sanigest.com
>_______________________
*
* 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/