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

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)

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

# 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

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.