Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
ghx-label-8
Description
The linear regression functions fit an ordinary-least-squares regression line
to a set of number pairs which can be used both as aggregate and analytic functions.
- regr_slope() takes two arguments of numeric type and returns the slope of the line.
- regr_intercept() takes two arguments of numeric type and returns the y-intercept of the regression line.
- regr_r2() takes two arguments of numeric type and returns the coefficient of determination (also called R-squared or goodness of fit) for the regression.