Parameter | Type | Description |
---|---|---|
ys | decimal, double | the independent variable. |
xs | decimal, double | The dependent variable |
Returns: decimal
Example
query:
SELECT REGR_SLOPE(flux, time_bjd_2454833)
FROM tabbysstarflux
result:
regr_slope |
---|
-35,650.62 |
Calculates the linear regression coefficient for the slope of the line of best fit for the x and y values where x and y are not null.
Parameter | Type | Description |
---|---|---|
ys | decimal, double | the independent variable. |
xs | decimal, double | The dependent variable |
query:
SELECT REGR_SLOPE(flux, time_bjd_2454833)
FROM tabbysstarflux
result:
regr_slope |
---|
-35,650.62 |