Speaking stata: Seven steps for vexatious string variables

Nicholas J. Cox, Clyde B. Schechter

Research output: Contribution to journalArticlepeer-review

Abstract

String variables that seemingly should be numeric require some care. The column provides a step-by-step guide explaining how to convert them or-as the case may merit-to leave them as they are. Dates in string form, identifiers and categorical variables, and pure numeric content trapped in string form need different actions. Practical advice on good and not so good technique is sprinkled throughout.

Original languageEnglish (US)
Pages (from-to)981-994
Number of pages14
JournalStata Journal
Volume18
Issue number4
DOIs
StatePublished - 2018

Keywords

  • Dates
  • Destring
  • Dm0098
  • Egen
  • Encode
  • Numeric variables
  • String variables

ASJC Scopus subject areas

  • Mathematics (miscellaneous)

Fingerprint Dive into the research topics of 'Speaking stata: Seven steps for vexatious string variables'. Together they form a unique fingerprint.

Cite this