Takes a binary matrix of voxels and a vector of behavior and runs Brunner-Munzel tests on each voxel. This is a fast function, but may produce infinite values for perfectly separated group. Use BMfast2 which avoids this problem.

BMfast(X, y)

Arguments

X

binary matrix ov voxlels (columns) for all subjects (rows)

y

vector of behavioral scores.

Value

List with two vectors: - statistic - BM values - dfbm - degrees of freedom