Learn R Programming

brainGraph (version 0.55.0)

aop: "Add-one-patient" approach to estimate individual network contribution

Description

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

Usage

aop(resids, index, corr.mat, level = c("global", "regional"))

Arguments

resids
Data table of model residuals
index
Integer; the row number (in the residuals data table) of the subject to be added
corr.mat
Correlation matrix of the control group
level
Character string; the level at which you want to calculate contributions (either global or regional)

Value

  • A data.table with columns for
  • Study.IDSubject identifier
  • GroupGroup membership
  • ICThe 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
IC <- adply(which(resids.all[, Group == groups[2]]), .margins=1, function(x)
            aop(resids.all, x, corrs[[1]][[1]]$R),
            .parallel=T, .id=NULL)

Run the code above in your browser using DataLab