The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.
tna
:
An R package for Transition Network Analysis
An R package for the analysis of relational dynamics through Transition Network Analysis (TNA). TNA provides tools for building TNA models, plotting transition networks, calculating centrality measures, and identifying dominant events and patterns. TNA statistical techniques (e.g., bootstrapping and permutation tests) ensure the reliability of observed insights and confirm that identified dynamics are meaningful. See (Saqr et al., 2024) for more details on TNA.
You can install tna
from GitHub with:
# install.packages("devtools")
::install_github("sonsoleslp/tna") devtools
Load the library
library("tna")
Example data
data("group_regulation", package = "tna")
Build a Markov model
<- tna(group_regulation) tna_model
summary(tna_model)
metric | value |
---|---|
Plot the transition network
plot(tna_model, cut = 0.3)
Calculate the centrality measures
<- centralities(tna_model) cent
State | OutStrength | InStrength | ClosenessIn | ClosenessOut | Closeness | Betweenness | BetweennessRSP | Diffusion | Clustering |
---|---|---|---|---|---|---|---|---|---|
Plot the centrality measures
plot(cent, ncol = 3)
Estimate centrality stability
estimate_centrality_stability(tna_model)
#> Centrality Stability Coefficients
#>
#> InStrength OutStrength Betweenness
#> 0.9 0.9 0.7
Identify and plot communities
<- communities(tna_model)
coms plot(coms)
Find and plot cliques
<- cliques(tna_model, threshold = 0.12)
cqs plot(cqs)
Compare high achievers (first 1000) with low achievers (last 1000)
<- tna(group_regulation[1:1000, ])
tna_model_start_high <- tna(group_regulation[1001:2000, ])
tna_model_start_low <- permutation_test(
comparison
tna_model_start_high,
tna_model_start_low,measures = c("InStrength")
)
Simple comparison vs. permutation test comparison
plot_compare(tna_model_start_high, tna_model_start_low)
plot(comparison)
Compare centralities
print(comparison$centralities$stats)
State | Centrality | diff_true | p_value |
---|---|---|---|
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.