regression-average-y
Returns the average of the dependent variable (numeric_expression1) of the regression line.
Note: Supported only in dynamic query mode.
Syntax
regression-average-y ( numeric_expression1 , numeric_expression2 )
regression-average-y ( numeric_expression1 , numeric_expression2 for
[ all|any ] expression { , expression } )
regression-average-y ( numeric_expression1 , numeric_expression2 for
report )
Example
regression-average-y ( Cost , Margin for report)
Result
The average of Cost within the regression line for Cost and Margin.
Result data
Cost | Margin | regression-average-y (Cost, Margin for report) |
---|---|---|
4 | 0.33 | 13.824 |
5 | 0.28 | 13.824 |
9.22 | 0.23 | 13.824 |
15.93 | 0.28 | 13.824 |
34.97 | 0.3 | 13.824 |