Learn R Programming

brainGraph (version 1.0.0)

check.resid: Check model residuals for each brain region

Description

This function checks the model residuals for each brain region in the analysis. It simply does a qqplot of the studentized residuals (but uses ggplot2 functions).

Usage

check.resid(resids, cols = FALSE)

Arguments

resids
Data table of model residuals for all brain regions
cols
Logical indicating whether to color by group (default: FALSE)

Value

A list of ggplot objects

See Also

qqnorm

Examples

Run this code
## Not run: ------------------------------------
# p.resids <- check.resid(resids.all)
# lapply(p.resids, function(x) {dev.new(); print(x)})
## ---------------------------------------------

Run the code above in your browser using DataLab