statistics {ppsbm} | R Documentation |
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)
Arguments
data |
List with $type.seq, $time.seq |
n |
Total number of nodes : |
K |
Size of the regular partition, i.e. number of subintervals |
directed |
Boolean for directed (TRUE) or undirected (FALSE) case |
Value
N(i,j)k = number of events for the node (i,j) during the k-th subinterval
Examples
# 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)
[Package ppsbm version 0.2.2 Index]