title: Regress y on x and vice versa
body: <p>I want to do a regression of x on y instead of y on x. Can I easily exchange y and x to do so? To clearify: I would change <code>lm(Y ~ X, data =...)</code> to <code>lm(X ~ Y, data =...)</code>.</p>
  
  <p>I'm a bit concerned if I then have to modify for example Pearson residuals to estimate the goodness of fit somehow. Or is this automatically considered in <code>R</code> ?</p>
  
  <p>And in general: How do I choose to regress which one on which: Just simple when I'm interested in y then I regress y on x and vice versa?</p>