title: Function for out of sample testing a linear model
body: <p>Can anyone recommend a function in R to me with which i can calculate the Out of Sample R-squared of a previously calculated linear model <code>lm()</code>.
  Regards and thanks in advance!</p>