Home  >>  Archives  >>  Volume 2 Number 3  >>  pr0006

The Stata Journal
Volume 2 Number 3: pp. 314-329



Subscribe to the Stata Journal
cover

Speaking Stata: On numbers and strings

Nicholas J. Cox
University of Durham, UK
n.j.cox@durham.ac.uk
Abstract.   The great divide among data types in Stata is between numeric and string variables. Most of the time, which kind you want to use for particular variables is clear and unproblematic, but surprisingly often, users face difficulties in making the right decision or need to convert variables from one kind to another. The main problems that may arise and their possible solutions are surveyed with reference both to official Stata and to user-written programs.
Terms of use     View this article (PDF)

View all articles by this author: Nicholas J. Cox

View all articles with these keywords: binary variables, categorical variables, Data Editor, dates, decode, destring, encode, identifiers, missing values, numeric variables, spreadsheets, string functions, string variables, tostring, value labels

Download citation: BibTeX  RIS

Download citation and abstract: BibTeX  RIS