REGR_INTERCEPT()
Point of intersection of the regression line with the y-axis
DOUBLE PRECISION
REGR_INTERCEPT ( <y>, <x> )
| Parameter | Description |
|---|---|
y |
Dependent variable of the regression line.It may contain a table column, a constant, a variable, an expression, a non-aggregate function or a UDF.Aggregate functions are not allowed as expressions. |
x |
Independent variable of the regression line.It may contain a table column, a constant, a variable, an expression, a non-aggregate function or a UDF.Aggregate functions are not allowed as expressions. |
The function REGR_INTERCEPT calculates the point of intersection of the regression line with the y-axis.
The function REGR_INTERCEPT(<y>, <x>) is equivalent to
REGR_AVGY(<y>, <x>) - REGR_SLOPE(<y>, <x>) * REGR_AVGX(<y>, <x>)