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.). It also calculates the externally Studentized (or
leave-one-out) residuals.
get.resid(dt.vol, covars, use.mean = FALSE, exclude = 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
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)
An object of class brainGraph_resids
with elements:
The design matrix
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
Other Structural covariance network functions: IndividualContributions
,
brainGraph_boot
,
brainGraph_init
,
brainGraph_permute
,
corr.matrix
,
plot.brainGraph_resids
,
plot_volumetric