R-squared value

From: H.Dang <danghy_at_nyahnyahspammersnyahnyah>
Date: Fri Sep 09 2011 - 09:41:06 MDT

Hi dear all,

I have 2 time series and I'm using the following command to find a fitting
line between them:

; calculate the regression coefficient.
; Note regline works on one dimensional arrays.
   rc = regline(fl_o,fl_z)
 data = new((/2,72/),float, 9.96921e+36)
 data(0,:) = fl_z
 data(1,:) = rc*(fl_o-rc@xave) + rc@yave

My question is if there is a function that give the R^2 value directly, the
square of the product moment correlation coefficient, not simply the square
of rc. Thank you.

Tel: 1-519-8884567ext36667

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Fri Sep 9 09:41:33 2011

This archive was generated by hypermail 2.1.8 : Mon Oct 10 2011 - 11:43:35 MDT