get.resid: Linear model residuals across brain regions

Description Usage Arguments Value Author(s) See Also

View source: R/get_resid.R

Description

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.

Usage

1
get.resid(dt.vol, covars, use.mean = FALSE, exclude = NULL, ...)

Arguments

dt.vol

A data.table containing all the volumetric measure of interest (i.e., the object lhrh as ouptut by brainGraph_init)

covars

A data.table of the covariates of interest

use.mean

Logical should we control for the mean hemispheric brain value (e.g. mean LH/RH cortical thickness) (default: FALSE)

exclude

Character vector of covariates to exclude (default: NULL)

...

Arguments passed to brainGraph_GLM_design (optional)

Value

An object of class brainGraph_resids with elements:

X

The design matrix

all.dat.tidy

The tidied data.table of volumetric data (e.g., mean regional cortical thickness) and covariates, along with resids column added

resids.all

The "wide" data.table of residuals

Author(s)

Christopher G. Watson, [email protected]

See Also

rstudent

Other Structural covariance network functions: IndividualContributions, brainGraph_boot, brainGraph_init, brainGraph_permute, corr.matrix, plot.brainGraph_resids, plot_volumetric


brainGraph documentation built on Feb. 24, 2018, 1:01 a.m.