regr_sxx
aggregate function
Applies to: Databricks SQL Databricks Runtime 11.3 LTS and above
Returns the sum of squares of the xExpr
values of a group where xExpr
and yExpr
are NOT NULL
.
Syntax
regr_sxx( [ALL | DISTINCT] yExpr, xExpr) [FILTER ( WHERE cond ) ]
This function can also be invoked as a window function using the OVER
clause.
Arguments
yExpr
: A numeric expression, the dependent variable.xExpr
: A numeric expression, the independent variable.cond
: An optional Boolean expression filtering the rows used for the function.