Learn R Programming

NetworkToolbox (version 1.1.1)

neuralgrouptest: Neural Network Group Statistics Tests

Description

Statistical test for group differences for global or local network characteristics of neural network data (still in testing phase)

Usage

neuralgrouptest(groups, nstat, correction = c("bonferroni", "FDR"))

Arguments

groups

Participant vector of desired groups (see examples)

nstat

A statistic vector (whole-network) or matrix (ROI) from the neuralstat function

correction

Multiple comparisons correction for ROI testing. Defaults to local false discovery rate (i.e., "FDR")

Value

Returns test statistics for given groups and statistics

Examples

Run this code
# NOT RUN {
neuralarray <- convertConnBrainMat()

filteredneuralarray <- neuralnetfilter(neuralarray, method = "threshold", thres = .50)

AverageShortestPathLength <- neuralstat(filteredneuralarray, statistic = "ASPL")

Degree <- neuralstat(filteredneuralarray, statistic = "deg")

groups <- c(rep(1,30),rep(2,30))

WholeNetwork_t-test <- neuralstattest(groups, AverageShortestPathLength)

ROI_t-test <- neuralstattest(groups, Degree)
# }

Run the code above in your browser using DataLab