Hypothesis test for graph statistics apply a graph statistic to a graph, as well as randomised versions of it, and test the null-hypothesis that the statistic of the input graph was produced by a uniform random edge distribution. Assumes normal distribution of the test statistic (returns normality test results along with p-values and results)
1 | g_test_scalar(g, simulation.n = 100, scalar.graph.statistic, alpha = 0.05)
|
g |
igraph object |
simulation.n |
how many simulations to run |
scalar.graph.statistic |
a function that takes an igraph graph object as input and returns a scalar |
alpha |
the confidence level |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.