Perform bootstrapping to obtain groupwise standard error estimates of a global graph measure (e.g. modularity).
The plot method returns two ggplot objects: one with shaded
regions based on the standard error, and the other based on confidence
intervals (calculated using the normal approximation.
brainGraph_boot(densities, resids, R = 1000, measure = c("mod",
"E.global", "Cp", "Lp", "assortativity", "strength", "mod.wt",
"E.global.wt"), conf = 0.95, .progress = TRUE, xfm.type = c("1/w",
"-log(w)", "1-w"))# S3 method for brainGraph_boot
summary(object, ...)
# S3 method for brainGraph_boot
plot(x, ..., alpha = 0.4)
Numeric vector of graph densities to loop through
An object of class brainGraph_resids (the output from
get.resid)
Integer; the number of bootstrap replicates (default: 1e3)
Character string of the measure to test (default: mod)
Numeric; the confidence level for calculating confidence intervals (default: 0.95)
Logical indicating whether or not to show a progress bar
(default: TRUE)
Character string specifying how to transform the weights
(default: 1/w)
A brainGraph_boot object (from
brainGraph_boot)
Unused
A brainGraph_boot object
A numeric indicating the opacity for
geom_ribbon
brainGraph_boot -- an object of class brainGraph_boot
containing some input variables, in addition to a list of
boot objects (one for each group).
plot -- list with the following elements:
A ggplot object with ribbon representing standard error
A ggplot object with ribbon representing confidence intervals
The confidence intervals are calculated using the normal approximation at the \(100 \times conf\)% level (by default, 95%).
For getting estimates of weighted global efficiency, a method for
transforming edge weights must be provided. The default is to invert them.
See xfm.weights.
Other Group analysis functions: GLM,
IndividualContributions,
MediationAnalysis, NBS,
brainGraph_permute, mtpc
Other Structural covariance network functions: IndividualContributions,
Residuals,
brainGraph_permute,
corr.matrix, import_scn,
plot_volumetric
# NOT RUN {
boot.E.global <- brainGraph_boot(densities, resids.all, 1e3, 'E.global')
# }
Run the code above in your browser using DataLab