g_hypothesis_test_scalar_statistic: Hypothesis test for graph statistics apply a graph statistic...

Description Usage Arguments

View source: R/graph_bootstrap.R

Description

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)

Usage

1
2
3
4
5
6
g_hypothesis_test_scalar_statistic(
  g,
  simulation.n = 100,
  scalar.graph.statistic,
  alpha = 0.05
)

Arguments

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


mabafaba/apatternlanguage documentation built on Jan. 1, 2021, 8:28 a.m.