title: How do I convert string variables to numeric variables in Stata?
body: <p>I have two variables in Stata, both numeric variables that have somehow been recorded as string variables. I need them converted to numeric variables so that I can generate a new variable with them. </p>
  
  <p>When I tried, it said <code>type mismatch</code> I have tried the <code>real</code> and the <code>encode</code> commands, none of which are working.</p>