Skip to contents

Returns the slope of the linear regression line for non-NULL pairs in a group.

Usage

regr_slope(y, x)

Arguments

y, x

DOUBLE

Value

DOUBLE

SQL examples

COVAR_POP(x, y) / VAR_POP(x)