Defining Axes in REGR_SXX for Plotting
If you export the data for plotting, define the y-axis (ordinate) as the dependent variable and the x-axis (abscissa) as the independent variable.
REGR_SXX with Other Functions
REGR_SXX can be combined with any of the ordered analytical functions in a SELECT list, QUALIFY clause, or ORDER BY clause. See Window Aggregate Functions.
REGR_SXX cannot be combined with aggregate functions within the same SELECT list, QUALIFY clause, or ORDER BY clause.