Merge branch 'master'; commit 'origin/stable'
[pspp-builds.git] / src / math / linreg.c
index a50aa7d8f105aaff4a6921ee84a88539956d3122..811f9d23a5f709877a55c6b535e0b61938e1ce1d 100644 (file)
@@ -737,3 +737,8 @@ pspp_linreg_with_cov (const struct covariance_matrix *full_cov,
   design_matrix_destroy (cov);
 }
 
+double pspp_linreg_mse (const pspp_linreg_cache *c)
+{
+  assert (c != NULL);
+  return (c->sse / c->dfe);
+}