data.table
(e.g. cortical thickness), in order to adjust for relevant
variables (e.g. age, sex, group, etc.). It adds the studentized
residuals as a column and returns the data table.get.resid(tidy.dt, covars, use.mean = FALSE, exclude = NULL)
data.table
that has been "tidied", containing all
covariates and the brain measure of interestdata.table
of covariatesdata.table
with 'resids' column addedlm
formulas useddata.table
of residualsrstudent