| name | tsna |
| description | R tsna package for temporal network analysis. Use for analyzing temporal paths and metrics in dynamic networks. |
tsna
Tools for temporal social network analysis.
Temporal Paths
library(tsna)
tPath(dnet, v = 1, direction = "fwd",
start = 0, end = 10)
tPath(dnet, v = 1, direction = "bkwd",
start = 0, end = 10)
tPath(dnet, v = 1, type = "geodesic")
Reachability
reach_fwd <- tReach(dnet, direction = "fwd")
reach_bkwd <- tReach(dnet, direction = "bkwd")
tReach(dnet, graph = TRUE)
Temporal Metrics
tDegree(dnet)
tDegree(dnet, at = 5)
tDegree(dnet, start = 0, end = 10)
SNA Statistics Over Time
tSnaStats(dnet, snafun = "betweenness")
tSnaStats(dnet, snafun = "closeness")
tSnaStats(dnet, snafun = "degree")
tSnaStats(dnet, snafun = function(x) {
mean(degree(x))
})
Edge Duration
edgeDuration(dnet)
mean(edgeDuration(dnet))
Vertex Activity
vertexDuration(dnet)
Transmission Trees
tree <- tPath(dnet, v = 1, direction = "fwd",
type = "earliest.arrive")
plot(tree)
Temporal Correlation
tCorrelate(dnet, lag = 1)
Aggregation
tErgmStats(dnet,
formula = ~ edges + mutual,
start = 0, end = 10,
time.interval = 1)