The netTS package is meant for relational data that takes place through time, e.g., interactions between two individuals with a time stamp. The package takes a time-aggregated network approach and uses an adjustable moving window to measure how a social network changes through time.
The moving window approach allows a user to define the size of a time window (e.g., windowsize = 1 month) and the amount to move the window (e.g., windowshift = 1 day). This moving window then subsets the relational data within a window, creates a network, and extracts a network measure. It then shifts over in time and repeats the process. By altering the size and shift of this moving window it is then possible to measure how networks change in time.
The package also provides tools for choosing window sizes, comparing observed network measures to null models, and for simulating network data to aid in statistical model construction and testing.
devtools::install_github("tbonne/netTS")
library(netTS)
library(lubridate)
library(ggplot2)
library(igraph)
library(reshape2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.