| MATLAB Central > MATLAB Newsreader > Why p-value is NaN or 0 using corrcoef ? |
|
|
|
Subject: Why p-value is NaN or 0 using corrcoef ? From: Kuo-Hsien Date: 13 Apr, 2009 20:08:01 Message: 1 of 6 |
|
I play around with [R,sig] = corrcoef(a,b) |
|
Subject: Why p-value is NaN or 0 using corrcoef ? From: Wayne King Date: 13 Apr, 2009 22:57:01 Message: 2 of 6 |
|
Hi Kuo, what version of Matlab are you using? I'm using R2009a and I don't get that behavior. For your example: |
|
Subject: Why p-value is NaN or 0 using corrcoef ? From: Wayne King Date: 13 Apr, 2009 23:01:03 Message: 3 of 6 |
|
Also Kuo-Hsien, I'm surprised that corrcoef works with NaNs. If you supply the 'rows','complete' input, corrcoef() only works on rows without NaNs. |
|
Subject: Why p-value is NaN or 0 using corrcoef ? From: Peter Perkins Date: 14 Apr, 2009 14:56:14 Message: 4 of 6 |
|
Kuo-Hsien wrote: |
|
Subject: Why p-value is NaN or 0 using corrcoef ? From: Kuo-Hsien Date: 14 Apr, 2009 18:06:02 Message: 5 of 6 |
|
"Wayne King" <wmkingty@gmail.com> wrote in message <gs0fvt$3u0$1@fred.mathworks.com>... |
|
Subject: Why p-value is NaN or 0 using corrcoef ? From: Kuo-Hsien Date: 14 Apr, 2009 18:07:01 Message: 6 of 6 |
|
Peter Perkins <Peter.Perkins@MathRemoveThisWorks.com> wrote in message |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
Contact us at files@mathworks.com
