testPermutation

2 - sample Permutation Test
0 download
Aggiornato 5 gen 2026

Visualizza la licenza

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 )

Cita come

Peter Krammer (2026). testPermutation (https://it.mathworks.com/matlabcentral/fileexchange/182983-testpermutation), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2022b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Versione Pubblicato Note della release
1.0.0