Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

generateDynppsbmConst

Data under dynppsbm with piecewise constant intensities


Description

Generate data under dynppsbm with piecewise constant intensities

Usage

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

Arguments

intens

Matrix with piecewise constant intensities α^{(q,l)} (each row gives the constants of the piecewise constant intensity for a group pair (q,l))

Time

Time

n

Total number of nodes

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 and if undirected then length Q*(Q+1)/2

Examples

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.3)
dynppsbm <- generateDynppsbmConst(intens,Time,n,prop.groups,directed=TRUE)

ppsbm

Clustering in Longitudinal Networks

v0.2.2
GPL (>= 2)
Authors
D. Giorgi, C. Matias, T. Rebafka, F. Villers
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.