title: How to store several variable names in Stata?
body: <p>I want to store a list of variable names in a new local variable, such that I do not have to type a long list of variable names for each regression. I am using Stata 14.</p>
  
  <p>E.g., I have the following 5 independent variables: <code>a b c d e</code> and one dependent variable: <code>f</code></p>
  
  <p>I don't want:</p>
  
  <pre><code>regress f a b c d e
  </code></pre>
  
  <p>But I want something like:</p>
  
  <pre><code>regress f allvar
  </code></pre>
  
  <p>How can I generate <code>allvar</code>?
  Unfortunately, this does not work</p>
  
  <pre><code>local allvar a b c d e 
  </code></pre>