Categories
Stata

How to Convert String Variables With Non-Numeric Values to Numeric Variables in Stata

String variables with non-numeric numeric values can be converted to numeric variables in Stata using the encode or egen commands.