setup_randomise
is used to setup the data/objects for any function
that does permutations for GLM-based analysis.
setup_randomise(X, con.mat, con.type, nC)randomise(ctype, N, perms, DT, nC, measure, X, con.mat, alternative)
Numeric matrix, if you wish to supply your own design matrix
(default: NULL
)
Numeric matrix specifying the contrast(s) of interest; if only one contrast is desired, you can supply a vector
Character string; either 't'
or 'f'
(for t or
F-statistics). Default: 't'
Integer; the number of contrasts
Integer; number of permutations to create (default: 5e3)
Matrix of permutations, if you would like to provide your own
(default: NULL
)
data.table
with outcome variables
Character string of the graph measure of interest
Character string, whether to do a two- or one-sided test
(default: 'two.sided'
)
A list containing:
The full partitioned model, joined
The residual-forming matrix
The inverse of the cross product of the full model
The effective contrast, equivalent to the original, for
the partitioned model [X, Z]
and considering all covariates
The residual degrees of freedom of the full partitioned model
(only for F-contrasts) The effective contrast multiplied by the inverse of the cross-product of the full model.
(only for F-contrasts) The rank of the effective contrast matrix.