snac_select.Rd
Applying SNAC+ test sequentially to estimate community number of a network fit to DCSBM
snac_select(
A,
Kmin = 1,
Kmax,
alpha = 1e-05,
labels = NULL,
cluster_fct = spec_clust,
...
)
adjacency matrix.
minimum candidate community number.
maximum candidate community number.
significance level for rejecting the null hypothesis.
a matrix with each column being a row label vector for a
candidate community number. If not provided, will be computed by 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
.
estimated community number.
A <- sample_dcpp(500, 10, 3, 0.1)$adj
snac_select(A, Kmax = 6)
#> [1] 3