Learn R Programming

brainGraph (version 0.62.0)

loo: "Leave-one-out" approach to estimate individual network contribution

Description

Calculates the individual contribution to group network data for each subject in each group using a "leave-one-out" approach. The residuals of a single subject are excluded, and a correlation matrix is created. This is compared to the original correlation matrix using the Mantel test.

Usage

loo(resids, corrs, level = c("global", "regional"))

Arguments

resids
Data table of model residuals
corrs
List of lists of correlation matrices (as output by
level
Character string; the level at which you want to calculate contributions (either global or regional) corr.matrix). The length should equal the number of groups.

Value

A data.table with columns for
Study.ID
Subject identifier
Group
Group membership
IC
The value of the individual contribution

References

Saggar M., Hosseini S.M.H., Buno J.L., Quintin E., Raman M.M., Kesler S.R., Reiss A.L. (2015) Estimating individual contributions from group-based structural correlations networks. NeuroImage, 120:274-284. doi:10.1016/j.neuroimage.2015.07.006

Examples

Run this code
## Not run: 
# IC <- loo(resids.all, corrs)
# RC <- loo(resids.all, corrs, level='regional')
# ## End(Not run)

Run the code above in your browser using DataLab