Runs linear models across brain regions listed in a data.table
(e.g.
cortical thickness), adjusting for variables in covars
(e.g. age, sex,
etc.), and calculates the externally Studentized (or
leave-one-out) residuals.
The [
method will let you reorder or subset residuals based on a given
numeric vector. However, this is used in bootstrap and permutation analysis
and should generally not be called directly by the user.
Print a summary of residuals for structural covariance data
get.resid(dt.vol, covars, method = c("comb.groups", "sep.groups"),
use.mean = FALSE, exclude = NULL, ...)# S3 method for brainGraph_resids
[(x, i, g = NULL)
# S3 method for brainGraph_resids
summary(object, regions = NULL, ...)
A data.table
containing all the volumetric measure of
interest (i.e., the object lhrh
as ouptut by
brainGraph_init
)
A data.table
of the covariates of interest
Character string indicating whether to test models for subject
groups separately or combined (default: comb.groups
)
Logical should we control for the mean hemispheric brain
value (e.g. mean LH/RH cortical thickness) (default: FALSE
)
Character vector of covariates to exclude (default:
NULL
)
Arguments passed to brainGraph_GLM_design
(optional)
A brainGraph_resids
object
Numeric vector of the indices
Character string indicating the group (default: NULL
)
A brainGraph_resids
object
Character vector of region(s) to focus on; default behavior is to show summary for all regions
An object of class brainGraph_resids
with elements:
The design matrix
The input argument method
The input argument use.mean
The tidied data.table
of volumetric data (e.g.,
mean regional cortical thickness) and covariates, along with
resids column added
The "wide" data.table
of residuals
Group names
summary.brainGraph_resids returns a list with two data tables, one of the residuals, and one of only the outlier regions
You can choose to run models for each of your subject groups separately or
combined (the default) via the method
argument. You may also choose
whether or not to include the mean, per-hemisphere structural measure in the
models. Finally, you can list variables that are present in covars
but
you would like to exclude from the models.
Other Structural covariance network functions: IndividualContributions
,
brainGraph_boot
,
brainGraph_init
,
brainGraph_permute
,
corr.matrix
,
plot.brainGraph_resids
,
plot_volumetric