eval_dcsbm_loglr | R Documentation |
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 = TRUE, eps = 1e-06)
A |
adjacency matrix |
labels |
a matrix with two columns representing two different label vectors |
poi |
whether to use Poisson version of likelihood (instead of Bernoulli) |
eps |
truncation threshold for the Bernoulli likelihood, used when parameter phat is close to 1 or 0. |
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.
log-likelihood ratio
eval_dcsbm_like, eval_dcsbm_bic
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.