Tips on working in Stata

This webpage will provide useful tips on working with Stata.

Working with strings

We begin by demonstrating when to use **destring** and **encode**. You should only use **destring** if a variable actually contains numeric values. For example, in the following dataset income is stored as a string: ‘‘‘ webuse destring1, clear destring income, replace ‘‘‘