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.
-- Cordially, Hongyan(鸿雁) Tel: 1-519-8884567ext36667
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
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