dedges.sbm: Density of edges

Description Usage Arguments Value Examples

View source: R/edges.R

Description

Compute the probability density for an edges object under an sbm object

Usage

1
2
## S3 method for class 'sbm'
dedges(x, edges, edgemod, na.rm = TRUE, ...)

Arguments

x

an sbm object

edges

an edges object

edgemod

an edgemod object

na.rm

remove NAs when calculating?

...

additional arguments for dedges.params

Value

matrix same size as edges$E with density of each edge

Examples

1
2
3
4
5
## 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)

SBMSplitMerge documentation built on July 1, 2020, 5:23 p.m.