dedges.sbm {SBMSplitMerge} | R Documentation |
Density of edges
Description
Compute the probability density for an edges
object under an sbm
object
Usage
## S3 method for class 'sbm'
dedges(x, edges, edgemod, na.rm = TRUE, ...)
Arguments
x |
an |
edges |
an |
edgemod |
an |
na.rm |
remove NAs when calculating? |
... |
additional arguments for |
Value
matrix same size as edges$E
with density of each edge
Examples
## make an sbm model, sample data then plot and print:
model <- sbmmod(dma(2,5), param_beta(1,1,1,1), edges_bern())
s <- model$r(100)
e <- redges(s, model$edge)
dedges(s, e, model$edge)
[Package SBMSplitMerge version 1.1.1 Index]