Skip to main content

regr_r2

Introduced in: v26.9.0 Returns the coefficient of determination of the least-squares fit, that is, the square of the correlation coefficient. Returns nan when x is constant, and 1 when y is constant. Syntax
Aliases: regrR2 Arguments Returned value Returns a value between 0 and 1. Float64 Examples Basic usage
Query
Response
Last modified on October 7, 2026