fraiman.test: Daniel Fraiman and Ricardo Fraiman test for network...

Description Usage Arguments Value References Examples

View source: R/statGraph.R

Description

Given a list of graphs, the test verifies if all the subpopulations have the same mean network, under the alternative that at least one subpopulation has a different mean network.

Usage

1
fraiman.test(G, maxBoot = 300)

Arguments

G

the undirected graphs to be compared. Must be a list of lists of igraph objects or a list of lists of adjacency matrices.

maxBoot

integer indicating the number of bootstrap resamples (default is 300).

Value

A list containing:

T

the value of the test.

p.value

the p-value of the test.

References

Fraiman, Daniel, and Ricardo Fraiman. "An ANOVA approach for statistical comparisons of brain networks", https://www.nature.com/articles/s41598-018-23152-5

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
## Not run: 
set.seed(42)

## test under H0
a <- b <- G <- list()
for(i in 1:10){
  a[[i]] <- igraph::sample_gnp(50,0.5)
  b[[i]] <- igraph::sample_gnp(50,0.5)
}
G <- list(a,b)
k1 <- fraiman.test(G)
k1

## test under H1
a <- b <- G <- list()
for(i in 1:10){
  a[[i]] <- igraph::sample_gnp(50,0.5)
  b[[i]] <- igraph::sample_gnp(50,0.6)
}
G <- list(a,b)
k2 <- fraiman.test(G)
k2

## End(Not run)

statGraph documentation built on May 19, 2021, 9:11 a.m.