**To**:**Ms Sindu Raj Parampil <parampil@xxxxxxxxxxxxxxxxxx>****Subject**:**Re: [ferret_users] correlation coefficient using variance.jnl****From**:**Ansley Manke <ansley.b.manke@xxxxxxxx>**- Date: Thu, 17 Sep 2009 09:15:09 -0700
- Cc: oar.pmel.ferret_users@xxxxxxxx
- In-reply-to: <Pine.LNX.4.58.0909171203410.4248@xxxxxxxxxxxxxxxxxx>
- References: <Pine.LNX.4.58.0909171203410.4248@xxxxxxxxxxxxxxxxxx>
- Sender: owner-ferret_users@xxxxxxxx
- User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

Hi Sindu,

One thing to try is after the first command let p = isorama[k=1]; let q = isoairs[k=1]; go variance ; li correl then do "cancel variable/all; cancel memory", before let p = isoairs[k=1]; let q = isorama[k=1]; go variance ; li correl

yes? go variance yes? go/help variance ! lists the commands in the script

list p_ave, q_ave list p_dev, q_dev ! or plot p_dev, q_dev

Please write back and let us know what you find out. Ansley Ms Sindu Raj Parampil wrote:

Hello,I've encountered a problem while calculating correlation using the'variance.jnl' between 2 variables: isorama and ISOAIRS.When I choose p = isorama & q = isoairs to run variance.jnl, thecorrelation coefficient is 0.2269. But when p and q are reversed(i.e., p = isoairs & q = isorama ), the correlation is undefined.Shouldn't the corr. coeffs be same irrespective of the order of thevariables for simultanoeus correlation?Pls see below for the commands I used in both cases and the ferretcalculations.1) let p = isorama[k=1]; let q = isoairs[k=1]; go variance ; li correl VARIABLE : CORRELATION OF P AND Q FILENAME : RH_1s90e_03_04.nc LONGITUDE: 90E LATITUDE : 1.5S DEPTH (m): -3 TIME : 31-DEC-2002 12:00 to 08-JUN-2004 12:00 0.2269 2) let p = isoairs[k=1]; let q = isorama[k=1]; go variance ; li correlVARIABLE : CORRELATION OF P AND QFILENAME : RH_1s90e_03_04.nc LONGITUDE: 89.5E LATITUDE : 1.5S HEIGHT (millibar): 1000 TIME : 31-DEC-2002 12:00 to 08-JUN-2004 12:00 ....I use FERRET v6.2 on OpenSuse 11.0. Any help is appreciated.Thank youSindu

**Follow-Ups**:**Re: [ferret_users] correlation coefficient using variance.jnl***From:*Ms Sindu Raj Parampil

**References**:**[ferret_users] correlation coefficient using variance.jnl***From:*Ms Sindu Raj Parampil

- Previous by thread:
**[ferret_users] correlation coefficient using variance.jnl** - Next by thread:
**Re: [ferret_users] correlation coefficient using variance.jnl**

Contact Us

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement