conf.test.Rd
Likelihood ratio test for gnp vs configuration model.
conf.test(
graph,
directed,
selfloops,
nempirical = NULL,
parallel = NULL,
seed = NULL
)
adjacency matrix or igraph graph
a boolean argument specifying whether object is directed or not.
a boolean argument specifying whether the model should incorporate selfloops.
optional, number of graphs to sample from null distribution for empirical distribution.
optional, number of cores to use or boolean for parallel computation. If passed TRUE uses all cores-1, else uses the number of cores passed. If none passed performed not in parallel.
optional integer
p-value of test.
data("adj_karate")
conf.test(graph = adj_karate, directed = FALSE, selfloops = FALSE, seed=123)
#>
#> LR test -- gnp vs CM
#>
#> data:
#> lr = 299.79, df = 33, p-value < 2.2e-16
#> alternative hypothesis: one.sided
#> 95 percent confidence interval:
#> 19.63033 51.83806
#>