Run permutation test using parallel processing

run_permtest(x.mat = xtx, y = ymat, columns = 1, split = 101,
  num_perms = 100)

Arguments

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 numeric value indicating which characteristic/predictor we want analyzed. User inputs the column number they want permuted.

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

Value

The desired permutation result

Examples

#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)