apoc.math.regr

Procedure APOC Core

apoc.math.regr(label, propertyY, propertyX) - It calculates the coefficient of determination (R-squared) for the values of propertyY and propertyX in the provided label

Signature

apoc.math.regr(label :: STRING?, propertyY :: STRING?, propertyX :: STRING?) :: (r2 :: FLOAT?, avgX :: FLOAT?, avgY :: FLOAT?, slope :: FLOAT?)

Input parameters

Name Type Default

label

STRING?

null

propertyY

STRING?

null

propertyX

STRING?

null

Output parameters

Name Type

r2

FLOAT?

avgX

FLOAT?

avgY

FLOAT?

slope

FLOAT?