This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function stats_p_r = conditionLabelRandomizationTests4RDMs(refRDM,candRDMs,options) | |
% compute the correlation of the refRDM to candRDMs and test the | |
% significance of the correlations via condition-label randomization test. | |
% Output is a structure containing the correlations and the p-values (both | |
% uncorrected and FWE controled). | |
% the function performs a condition-label randomisation test on the | |
% relatedness of the refRDM to all of the RDMs in the candRDMs. | |
% INPUTs: | |
% refRDM: an [n n] RDM that will be tested against all of the candidates | |
% candRDMs: [n n nCandidates] matrix |