View source: R/graph_bootstrap.R
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 graph statistic was produced by a random edge distribution. Assumes normal distribution of the test statistic (returns normality test results along with p-values and results)
1 2 3 4 5 6 | g_hypothesis_test_scalar_statistic(
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.