Description Usage Arguments Details
View source: R/brainGraph_GLM.R
setup_randomise
is used to setup the data/objects for any function
that does permutations for GLMbased analysis.
Randomize and fit a model and find the maximum statistic
1 2 3  setup_randomise(X, con.mat, nC)
randomise(ctype, N, perms, DT, nC, measure, X, con.mat, alternative)

X 
Numeric matrix, if you wish to supply your own design matrix
(default: 
con.mat 
Numeric matrix specifying the contrast(s) of interest; if only one contrast is desired, you can supply a vector 
nC 
Integer; the number of contrasts 
N 
Integer; number of permutations to create (default: 5e3) 
perms 
Matrix of permutations, if you would like to provide your own
(default: 
DT 

measure 
Character string of the graph measure of interest 
alternative 
Character string, whether to do a two or onesided test
(default: 
The tasks performed by this function are: separate the design matrix into the independent variables of interest and nuisance variables (based on the contrast(s)), and calculate the new contrast(s) based on this new design matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.