Affiliation:
1. Department of Geography Durham University Durham, uk
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 functions 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.
Subject
Mathematics (miscellaneous)
Cited by
2 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Stata Tip 130: 106610 and All That: Date Variables that Need to be Fixed;The Stata Journal: Promoting communications on statistics and Stata;2018-09
2. Stata Tip 98: Counting Substrings within Strings;The Stata Journal: Promoting communications on statistics and Stata;2011-07