September 7, 2012 Stata 3 commentsHow to Convert String Variables With Non-Numeric Values to Numeric Variables in StataWe can convert string variables with non-numeric values to numeric variables in Stata using the encode or egen commands.