title: How to generate a variable taking the mean of two other variables?
body: <p>I am trying to generate a variable in Stata that is the mean of two other column variables. How can I do this? So far, I have</p>
  
  <p>generate var = mean(var1 var2)</p>
  
  <p>but I know that this is not correct, since mean isn't a command.</p>
  
  <p>Thanks!</p>