eval_dcsbm_loglr.Rd
Computes the log-likelihood ratio of one DCSBM relative to another, using
estimated parameters B
and theta
based on the given label vectors.
eval_dcsbm_loglr(A, labels, poi = T, eps = 1e-06)
adjacency matrix
a matrix with two columns representing two different label vectors
whether to use Poisson version of likelihood (instead of Bernoulli)
truncation threshold for the Bernoulli likelihood, used when parameter phat is close to 1 or 0.
log-likelihood ratio
The log-likehood ratio is computed between two DCSBMs specified by the columns
of labels
. The function computes the log-likelihood ratio of the model with
labels[ , 2]
w.r.t. the model with labels[ , 1]
. This is often used with two
label vectors fitted using different number of communities (say K
and K+1
).
When poi
is set to TRUE
, the function uses fast sparse matrix computations
and is scalable to large sparse networks.