EconPapers    
Economics at your fingertips  
 

Speaking Stata: MMXI and all that: Handling Roman numerals within Stata

Nicholas Cox

Stata Journal, 2011, vol. 11, issue 1, 126-142

Abstract: The problem of handling Roman numerals in Stata is used to illustrate issues arising in the handling of classification codes in character string form and their numeric equivalents. The solutions include Stata programs and Mata func- tions for conversion from numeric to string and from string to numeric. Defining acceptable input and trapping and flagging incorrect or unmanageable inputs are key concerns in good practice. Regular expressions are especially valuable for this problem.

Keywords: fromroman; toroman; Roman numerals; strings; regular expressions; Mata; data management (search for similar items in EconPapers)
Date: 2011
Note: to access software from within Stata, net describe http://www.stata-journal.com/software/sj11-1/dm0054/
References: View references in EconPapers View complete reference list from CitEc
Citations:

Downloads: (external link)
http://www.stata-journal.com/article.html?article=dm0054 link to article purchase

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:tsj:stataj:v:11:y:2011:i:1:p:126-142

Ordering information: This journal article can be ordered from
http://www.stata-journal.com/subscription.html

Access Statistics for this article

Stata Journal is currently edited by Nicholas J. Cox and Stephen P. Jenkins

More articles in Stata Journal from StataCorp LLC
Bibliographic data for series maintained by Christopher F. Baum () and Lisa Gilmore ().

 
Page updated 2025-03-29
Handle: RePEc:tsj:stataj:v:11:y:2011:i:1:p:126-142