run_permtest_multicat.Rd
Run permutation test using parallel processing, for predictor variabbles containing multiple (3+ categories)
run_permtest_multicat(x.mat = xtx, y = ymat, columns = 2:3, split = 101, num_perms = 100)
x.mat | The desired x matrix that contains all the characteristics data/predictor variables; the matrix should contain the desired column user intends completing the permutation on. |
---|---|
y | The desired preprocessed neuroimaging data, with a mask or not. |
columns | A statement indicating which characteristic/predictor we want analyzed, for multiple categories select the proper columns |
split | A value that allows user to finely split the processing task to allow for error checking. |
num_perms | User defined value for number of desired permutations |
The desired permutation result
#The following three lines of code are necessary for the parallel processing to work, can be changed to user's discretion but this is a known safe method. ### #cores <- detectCores() #cl <- makeCluster(cores[1]-1) #not to overload your computer #registerDoParallel(cl) ### #a <- run_permtest(x.mat = xtx, y = ymat, columns = 1, split = 101, num_perms = 100)