regression-sxx
Returns the following computation after eliminating NULL pairs: REGR_COUNT(numeric_expression1, numeric_expression2) * VAR_POP(numeric_expression2)
Note: Supported only in dynamic query mode.
Syntax
regression-sxx ( numeric_expression1 , numeric_expression2 )
regression-sxx ( numeric_expression1 , numeric_expression2 for
[ all|any ] expression { , expression } )
regression-sxx ( numeric_expression1 , numeric_expression2 for
report )
Example
regression-sxx ( Cost , Margin for report)
Result
The sxx computation of the regression line for Cost and Margin.
Result data
Cost | Margin | regression-sxx (Cost, Margin for report) |
---|---|---|
4 | 0.33 | 0.00532 |
5 | 0.28 | 0.00532 |
9.22 | 0.23 | 0.00532 |
15.93 | 0.28 | 0.00532 |
34.97 | 0.3 | 0.00532 |