nancorr
Versione 1.0.1 (2,44 KB) da
Oleksandr Frei
Calculates Pearson correlation allowing for nan values.
nancorr(A, B) is equivalent to matlab's corr(A, B, 'Rows', 'pairwise'), except nancorr routine is orders of magnitude faster on large matrices.
nancorr also returns t-statistics:
[coef, t] = nancorr(A, B); zmat = t;
These can be converted to p-values as follows:
[coef, t, n] = NANCORR(A, B);
pval = tcdf(-abs(t), n - 2)
Cita come
Oleksandr Frei (2024). nancorr (https://www.mathworks.com/matlabcentral/fileexchange/71893-nancorr), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Creato con
R2019a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- MATLAB > Mathematics > Interpolation >
Scopri di più su Interpolation in Help Center e MATLAB Answers
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.