Function implements 2 - sample permutation non-parametric statistical test. It allows to set parameter alpha;
Function returns multiple information such as pValue, average difference, HypothesisRejection .
function [pValue, avgDif, measDif, h] = testPermutation(data1, data2, permCounts, alpha, initialSeed)
data1 - first group of data (numerical vector)
data2 - second group of data (numerical vector)
permCounts - count of generated permutation in statistical test (positive integer)
alpha - parameter which setting the significant level (default is 0.02)
initialSeed - number which initialize the random number generator, for generating pseudo random permutations. Identical seed is suitable for reaching the same test results.
pValue - p value of statistical test
avgDif - average Difference reached by permutations
measDif - average Difference measured in 2 groups of data
h - statistical test result (1 = we are rejecting H0 hypothesis, 0 = we are not rejecting H0 hypothesis )
Citar como
Peter Krammer (2026). testPermutation (https://es.mathworks.com/matlabcentral/fileexchange/182983-testpermutation), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2022b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxEtiquetas
Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
| Versión | Publicado | Notas de la versión | |
|---|---|---|---|
| 1.0.0 |
