generateDynppsbmConst {ppsbm}R Documentation

Data under dynppsbm with piecewise constant intensities

Description

Generate data under the Dynamic Poisson Process Stochastic Blockmodel (dynppsbm) with piecewise constant intensity functions.

Usage

generateDynppsbmConst(intens, Time, n, prop.groups, directed = TRUE)

Arguments

intens

Matrix with piecewise constant intensities \alpha^{(q,l)}. Each row gives the constant values of the piecewise constant intensity for a group pair (q,l) on a regular partition of the time interval [0,Time].

Time

Positive real number. [0,Time] is the total time interval of observation.

n

Total number of nodes, 1\le i \le n.

prop.groups

Vector of group proportions, should be of length Q.

directed

Boolean for directed (TRUE) or undirected (FALSE) case.

If directed then intens should be of length Q^2, else of length Q*(Q+1)/2.

References

MATIAS, C., REBAFKA, T. & VILLERS, F. (2018). A semiparametric extension of the stochastic block model for longitudinal networks. Biometrika. 105(3): 665-680.

Examples

# Define 2 different piecewise constant intensity functions
# on a 3 parts regular partition of time interval [0,Time]
intens1 <- c(1,3,8)
intens2 <- c(2,3,6)

intens <- matrix(c(intens1,intens2,intens1,intens2),4,3)

Time <- 10
n <- 20
prop.groups <- c(0.2,0.8)
obs <- generateDynppsbmConst(intens,Time,n,prop.groups,directed=TRUE)


[Package ppsbm version 1.0.0 Index]