regr_r2()

Returns the R-squared, or goodness-of-fit value for a regression.

regr_r2() follows this syntax.

1SELECT regr_r2(FIELD1, FIELD2)
2FROM DATASET;