EconPapers    
Economics at your fingertips  
 

Speaking Stata: On numbers and strings

Nicholas Cox ()

Stata Journal, 2002, vol. 2, issue 3, pages 314-329

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. Copyright 2002 by Stata Corporation.

Keywords: binary variables; categorical variables; Data Editor; dates; decode; destring; encode; identifiers; missing values; numeric variables; spreadsheets; string functions; string variables; tostring; value labels (search for similar items in EconPapers)
Date: 2002
View list of references

Downloads: (external link)
http://www.stata-journal.com/sjpdf.html?articlenum=pr0006 (application/pdf)

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: http://EconPapers.repec.org/RePEc:tsj:stataj:v:2:y:2002:i:3:p:314-329

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

Access Statistics for this article

Stata Journal is edited by H. Joseph Newton and Nicholas J. Cox

More articles in Stata Journal from StataCorp LP
Series data maintained by Christopher F. Baum ().

 
Page updated 2009-11-24
Handle: RePEc:tsj:stataj:v:2:y:2002:i:3:p:314-329