Learn R Programming

brainGraph (version 2.0.2)

randomise: Randomize and fit a model and find the maximum statistic

Description

Randomize and fit a model and find the maximum statistic

Usage

randomise(ctype, N, perms, DT, nC, measure, X, con.mat, alternative)

Arguments

N

Integer; number of permutations to create (default: 5e3)

perms

Matrix of permutations, if you would like to provide your own (default: NULL)

DT

data.table with outcome variables

measure

Character string of the graph measure of interest

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

alternative

Character string, whether to do a two- or one-sided test (default: 'two.sided')