Learn R Programming

brainGraph (version 1.0.0)

boot_global: Bootstrapping for global graph measures

Description

This function performs bootstrapping to get group standard error estimates of a global graph measure (e.g. modularity). It will output a list containing the boot objects and a data.table with standard errors and 95% confidence intervals at each density for each group.

Usage

boot_global(densities, resids, R = 1000, measure = c("mod", "E.global",
  "Cp", "Lp", "assortativity"))

Arguments

densities
A vector of graph densities to loop through
resids
A data.table of the residuals (from get.resid)
R
The number of bootstrap replicates (default: 1e3)
measure
Character string of the measure to test (default: 'mod')

Value

A list with two elements:
g
A list of boot objects (one for each group)
dt
A data table with length # densities * # groups

Details

The 95% confidence intervals are calculated using the normal approximation.

See Also

boot, boot.ci, permute.group

Examples

Run this code
## Not run: ------------------------------------
# boot.E.global <- boot_global(densities, resids.all, 1e3, 'E.global')
## ---------------------------------------------

Run the code above in your browser using DataLab