Learn R Programming

ppsbm (version 0.2.2)

statistics: Compute statistics

Description

Convert the initial data into the statistics matrix \(N_{ijk}\), by counting the number of events for the nodes during the subintervals of a particular partition of the time interval.

Usage

statistics(data, n, K, directed = TRUE)

Value

N(i,j)k = number of events for the node (i,j) during the k-th subinterval

Arguments

data

List with $type.seq, $time.seq

n

Total number of nodes : \(i,j\in {1, \ldots, n} \)

K

Size of the regular partition, i.e. number of subintervals

directed

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

Examples

Run this code
# Convert the generated data into the statistics matrix N_ijk with 8 columns

n <- 50
Dmax <- 2^3

obs <- statistics(generated_Q3$data,n,Dmax,directed=FALSE)

Run the code above in your browser using DataLab