Description Usage Arguments Value References Examples
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.
1 | fraiman.test(G, maxBoot = 300)
|
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). |
A list containing:
T |
the value of the test. |
p.value |
the p-value of the test. |
Fraiman, Daniel, and Ricardo Fraiman. "An ANOVA approach for statistical comparisons of brain networks", https://www.nature.com/articles/s41598-018-23152-5
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.