statistics: Compute statistics

Description Usage Arguments Value Examples

View source: R/auxiliary.R

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

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

Arguments

data

List with $type.seq, $time.seq

n

Total number of nodes : i,j\in {1, …, n}

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

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

ppsbm documentation built on March 19, 2018, 5:03 p.m.