title: How to run a multiple regression for males and females separately?
body: <p>I have run the following multiple regression:</p>
  
  <pre><code>lm(distance ~ age*gender, data=mydata)
  </code></pre>
  
  <p>In my data gender includes males (coded as 0) and females (coded as 1). My results show that there is a significant effect of gender as a whole, and I now want to run two separate multiple regressions; one for males and one for females.</p>
  
  <p>Can anyone offer some help on how to split this gender variable into just males and just females for my multiple regression?</p>