View source: R/stochastic_block_model.R
expected_edgecount.sbm_4group | R Documentation |
for groups A and B, this returns d_{A,B} = d_{B,A}
.
## S3 method for class 'sbm_4group'
expected_edgecount(params, first.group, second.group)
params |
a parameter vector, which must have pref.matrix and block.sizes |
first.group |
vector with the names of the block that blocks that are in group A |
second.group |
vector with the names of the blocks that are in group B |
it does not matter how the preference matrix and block sizes were generated, so this function could be used with many different models.
The expected number of edges between the two groups under the stochastic block model given by pref.matrix. For example,
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.