Learn R Programming

brainGraph (version 2.0.2)

setup_randomise: Helper function to setup for randomise

Description

setup_randomise is used to setup the data/objects for any function that does permutations for GLM-based analysis.

Usage

setup_randomise(X, con.mat, nC)

Arguments

X

Numeric matrix, if you wish to supply your own design matrix (default: NULL)

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

Details

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.