snac_select {nett}R Documentation

Estimate community number with SNAC+

Description

Applying SNAC+ test sequentially to estimate community number of a network fit to DCSBM

Usage

snac_select(
  A,
  Kmin = 1,
  Kmax,
  alpha = 1e-05,
  labels = NULL,
  cluster_fct = spec_clust,
  ...
)

Arguments

A

adjacency matrix.

Kmin

minimum candidate community number.

Kmax

maximum candidate community number.

alpha

significance level for rejecting the null hypothesis.

labels

a matrix with each column being a row label vector for a candidate community number. If not provided, will be computed by cluster_fct.

cluster_fct

community detection function to get label vectors to compute SNAC+ statistics (in snac_test), by default using spec_clust.

...

additional arguments for cluster_fct.

Value

estimated community number.

See Also

snac_test

Examples

A <- sample_dcpp(500, 10, 3, 0.1)$adj
snac_select(A, Kmax = 6)

[Package nett version 1.0.0 Index]