Skip to content

Commit 0703ff3

Browse files
committed
permutation testing
1 parent 411a0ce commit 0703ff3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pythonCode/permutationTesting.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ def maxT(diff_arr, nullmean=0, alpha=.05, tail=1, permutations=1000, nproc=1, pv
4040
maxTThreshold : The t-value threshold corresponding to the corrected alpha value. If a two-tailed test is specified, the maxR is provided as an absolute value
4141
p (optional) : Array of FWE-corrected p-values (Mx1 vector, for M tests);
4242
43-
N.B.: Only works for paired one-sample t-tests
4443
"""
4544
# Focus on difference matrix -- more computationally feasible (and less data to feed into parallel processing)
4645

@@ -139,9 +138,8 @@ def maxR(data_arr, behav_arr, alpha=.05, tail=0, permutations=1000, nproc=1, pva
139138
Nichols TE, Holmes AP. (2002). Nonparametric permutation tests for functional neuroimaging: A primer with Examples. Hum. Brain Mapp., 15: 1-25. doi:10.1002/hbm.1058
140139
Required Parameters:
141140
data_arr = MxN matrix of set of M independent measurements (e.g., FC-values) across N subjects
142-
behav_arr = 1xN array of behavioral measures for N subjects
141+
behav_arr = Nx1 array of behavioral measures for N subjects
143142
Optional Parameters:
144-
nullmean = Expected value of the null hypothesis {default = 0, for a t-test against 0}
145143
alpha = alpha value to return the maxT threshold {default = .05}
146144
tail = [0,1, or -1]
147145
If tail = 1, reject the null hypothesis if the correlation is greater than the null dist (upper tailed test).

0 commit comments

Comments
 (0)