Simple linear regression:
r = SUM[ (x(i)-xbar)*(y(i)-ybar) ] / SUM[ (x(i)-xbar)^2 ]
where xbar and ybar are the average x and y
Cheers
On 03/14/2011 04:51 PM, gs416492@albany.edu wrote:
> Hello,
>
> I have a quick question about the built-in regline function. Does the
> regression coefficient (the value returned by calling this function) refer
> to R-squared, r, or the slope of the regression line? Also, what fitting
> method does the regline function use?
>
> Thanks
>
> -Gabriel Susca-Lopata
> Undergraduate Student
> SUNY Albany dept. of Atmos.& Env. Sci
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-- ====================================================== Dennis J. Shea tel: 303-497-1361 | P.O. Box 3000 fax: 303-497-1333 | Climate Analysis Section | Climate & Global Dynamics Div. | National Center for Atmospheric Research | Boulder, CO 80307 | USA email: shea 'at' ucar.edu | ====================================================== _______________________________________________ ncl-talk mailing list List instructions, subscriber options, unsubscribe: http://mailman.ucar.edu/mailman/listinfo/ncl-talkReceived on Mon Mar 14 17:33:35 2011
This archive was generated by hypermail 2.1.8 : Wed Mar 16 2011 - 09:22:37 MDT