nancorr

Calculates Pearson correlation allowing for nan values.
132 descargas
Actualizado 29 Dec 2021

Ver licencia

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)

Citar como

Oleksandr Frei (2024). nancorr (https://www.mathworks.com/matlabcentral/fileexchange/71893-nancorr), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2019a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Interpolation en Help Center y MATLAB Answers.
Etiquetas Añadir etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versión Publicado Notas de la versión
1.0.1

stops underflow/overflow in calculations of standard errors (sx, sy) causing the output to become complex

1.0.0