Skip to content

Instantly share code, notes, and snippets.

@spike3600
spike3600 / conditionLabelRandomizationTests4RDMs.m
Last active May 20, 2016 22:30
condition-label randomisation test of RDMs (one against many)
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