Desktop version

Main > Knowledge Base > 1C:Enterprise documentation > 1C:Enterprise User Manual > Appendix 1. Data composition system expression language > Aggregate functions > Regr_Slope > 1C:Enterprise documentation > 1C:Enterprise User Manual > Appendix 1. Data composition system expression language > Aggregate functions > Regr_Slope > 1C:Enterprise documentation > 1C:Enterprise User Manual > Appendix 1. Data composition system expression language > Aggregate functions > Regr_Slope

Regr_Slope

This function calculates the slope of the regression line. It uses the following formula: Covar_Pop(Y, X)/Var_Pop(X). Pairs with NULL values are discarded.

Syntax:

Regr_Slope(Y, X)

Parameters:

Example:

X

Y

1

7

2

1

3

2

4

5

5

7

6

34

7

32

8

43

9

87

SELECT Regr_Slope(Y, X) FROM Table

Result:

 8.91666667

Next page: Regr_Intercept




© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.