eval_dcsbm_like: Log likelihood of a DCSBM (fast with poi = TRUE)

View source: R/estimate.R

eval_dcsbm_likeR Documentation

Log likelihood of a DCSBM (fast with poi = TRUE)

Description

Compute the log likelihood of a DCSBM, using estimated parameters B, theta based on the given label vector

Usage

eval_dcsbm_like(A, z, poi = TRUE, eps = 1e-06)

Arguments

A

adjacency matrix

z

label vector

poi

whether to use Poisson version of likelihood

eps

truncation threshold for the Bernoulli likelihood, used when parameter phat is close to 1 or 0.

Details

The log likelihood is calculated by

\ell(\hat B,\hat θ, \hat π, \hat z \mid A) = ∑_i \log \hat π_{z_i} + ∑_{i < j} φ(A_{ij};\hat θ_i \hat θ_j \hat B_{\hat{z}_i \hat{z}_j} )

where \hat B, \hat θ is calculated by estim_dcsbm, \hat{π}_k is the proportion of nodes in community k.

Value

log likelihood of a DCSBM

See Also

eval_dcsbm_loglr, eval_dcsbm_bic


aaamini/nett documentation built on Nov. 12, 2022, 6:25 p.m.