conf.test: Test regular (gnp) vs configuration model

Description Usage Arguments Value Examples

View source: R/tests.R

Description

Likelihood ratio test for gnp vs configuration model.

Usage

1
2
3
4
5
6
7
8
conf.test(
  graph,
  directed,
  selfloops,
  nempirical = NULL,
  parallel = NULL,
  seed = NULL
)

Arguments

graph

adjacency matrix or igraph graph

directed

a boolean argument specifying whether object is directed or not.

selfloops

a boolean argument specifying whether the model should incorporate selfloops.

nempirical

optional, number of graphs to sample from null distribution for empirical distribution.

parallel

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.

seed

optional integer

Value

p-value of test.

Examples

1
2
data("adj_karate")
conf.test(graph = adj_karate, directed = FALSE, selfloops = FALSE, seed=123)

ghypernet documentation built on Oct. 15, 2021, 5:14 p.m.