Pearson Correlation of two distance matrices

  • Follow


Hello, 

I want to calculate the Pearson correlation coefficient of two distance matrices. Both of them are 47x47. I tried RHO = partialcorr(TrigPairA,TrigPairB); which gives me the partial correlation coefficients between pairs of variables in TrigPairA controlling for the variables in TrigPairB. I would like to calculate the overall Pearson correlation of these two matrices. 

Can anyone give any idea of how can i do it!! 

Thank you in advance, 

Makrina

PS. I apologize for my english! 
0
Reply Makrina 1/13/2011 3:45:05 PM

"Makrina Kosti" wrote in message <ign6m1$lin$1@fred.mathworks.com>...
> Hello, 
> 
> I want to calculate the Pearson correlation coefficient of two distance matrices. Both of them are 47x47. I tried RHO = partialcorr(TrigPairA,TrigPairB); which gives me the partial correlation coefficients between pairs of variables in TrigPairA controlling for the variables in TrigPairB. I would like to calculate the overall Pearson correlation of these two matrices. 
> 
> Can anyone give any idea of how can i do it!! 
> 
> Thank you in advance, 
> 
> Makrina
> 
> PS. I apologize for my english! 

One correction to my post.
I ment i used corr(TrigPairA,TrigPairB) and not partialcorr. 

Thanks 
0
Reply Makrina 1/13/2011 4:19:04 PM


On 1/13/2011 10:45 AM, Makrina Kosti wrote:
> I want to calculate the Pearson correlation coefficient of two distance
> matrices. Both of them are 47x47.

I think that depends on what you mean.  You may simply want 
corr(TrigPairA(:),TrigPairB(:), which will return a single correlation 
coefficient.
0
Reply Peter 1/13/2011 5:08:00 PM

Peter Perkins <Peter.Perkins@MathRemoveThisWorks.com> wrote in message <ignbhg$17l$2@fred.mathworks.com>...
> On 1/13/2011 10:45 AM, Makrina Kosti wrote:
> > I want to calculate the Pearson correlation coefficient of two distance
> > matrices. Both of them are 47x47.
> 
> I think that depends on what you mean.  You may simply want 
> corr(TrigPairA(:),TrigPairB(:), which will return a single correlation 
> coefficient.

Yep, that was what i was looking for!! Thank you! 

Makrina
0
Reply Makrina 1/14/2011 11:44:05 AM

3 Replies
505 Views

(page loaded in 0.031 seconds)

Similiar Articles:













7/16/2012 5:58:32 AM


Reply: