Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Flipper 6.0 Help File - <b>regress()</b> t_exam11 http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
REGRESS()                                                          T_EXAM11
   Draws the linear regression line of the selected Y column.

   Syntax
         REGRESS(nColumn [,nShowLine])

   Arguments
         nColumn     Sets the Y data column.
         OPTIONAL PARAMETERS
         nShowLine   Sets the line on or off. [Default is ON]

   Returns
         RET_COEF()     Returns the coefficient of determination r squared.
         RET_R()        Returns the correlation coefficient r.
         RET_SLOPE()    Returns the slope of the line.
         RET_YINTER()   Returns the Y intercept for the regression line.

   Description
         REGRESS() performs linear regression analysis. The data in nColumn is
         treated as a response to the data in X (column 0). Y intercept and
         slope can be returned to your program with RET_YINTER() and
         RET_SLOPE(). The correlation coefficients, r, and coefficient of
         determination, r squared, specify how closely the equation fits the
         data. They are returned with RET_R() and RET_COEF().

         nShowLine turns the display of the regression line on and off.

See Also: POLY_FIT() POLY_PLOT() SPLINE()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson