estim_dcsbm | R Documentation |
Compute the block sum of an adjacency matrix given a label vector.
estim_dcsbm(A, z)
A |
adjacency matrix. |
z |
label vector. |
\hat B_{k\ell} = \frac{N_{k\ell}(\hat z)}{m_{k\ell} (\hat z)}, \quad \hat θ_i = \frac{n_{\hat z_i}(\hat z) d_i}{∑_{j : \hat z_j = \hat z_i} d_i}
where N_{k\ell}(\hat{z}) is the sum of the elements of A
in block (k,\ell)
specified by labels \hat z, n_k(\hat z) is the number of nodes in community k
according to \hat z and m_{k\ell}(\hat z) = n_k(\hat z) (n_\ell(\hat z) - 1\{k = \ell\})
A list of result
B |
estimated connectivity matrix. |
theta |
estimated node propensity parameter. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.