Package: htna 0.3.7

Sonsoles López-Pernas

htna: Heterogeneous Transition Network Analysis

Implements the Heterogeneous Transition Network Analysis (HTNA) method described by López-Pernas et al. (2026) <doi:10.1002/jcal.70285>. The method is an extension of transition network analysis (TNA) where actions or events belong to two or more distinct actor types (e.g. Human and AI), preserving the actor type partition on the resulting network. Provides a thin, focused API on top of the 'Nestimate' estimation engine and the 'cograph' rendering engine, so downstream bootstrap, permutation, reliability, centrality, and plotting functions treat each actor's codes as a distinct node group.

Authors:Sonsoles López-Pernas [aut, cre, cph], Kamila Misiejuk [aut, cph], Mohammed Saqr [aut, cph]

htna_0.3.7.tar.gz
htna_0.3.7.zip(r-4.7-any)htna_0.3.7.zip(r-4.6-any)
htna_0.3.7.tar.gz(r-4.7-any)htna_0.3.7.tar.gz(r-4.6-any)
htna_0.3.7.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
htna/json (API)

# Install 'htna' in R:
install.packages('htna', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/sonsoleslp/htna/issues

Pkgdown/docs site:https://sonsoles.me

Datasets:

On CRAN:

Conda:

3.48 score 401 downloads 33 exports 35 dependencies

Last updated from:140b9402f9. Checks:6 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-develOK192
source / vignettesOK223
linux-releaseOK225
windows-develOK178
windows-releaseOK142
wasm-releaseOK117

Exports:association_rules_htnabayes_compare_htnabootstrapbootstrap_htnabuild_htnacasedrop_reliability_htnacentralities_htnacentrality_stability_htnacertainty_htnacompare_htnadeprune_htnaedge_betweenness_htnaextract_meta_pathsfrequencies_htnahtna_palettemarkov_order_test_htnamosaic_plot_htnapermutation_htnaplot_centralitiesplot_edge_betweenness_htnaplot_frequencies_htnaplot_htnaplot_htna_bootstrapplot_htna_diffplot_sequencesprune_htnapruning_details_htnareliability_htnareprune_htnasequence_compare_htnasequence_plot_htnastate_distribution_htnastate_frequencies_htna

Dependencies:brglm2cliclustercographcpp11data.tableenrichwithfarverggplot2gluegtableidiographicigraphisobandlabelinglatticelifecyclemagrittrMASSMatrixNestimatenleqslvnnetnumDerivpkgconfigpsychnetsR6RColorBrewerrlangS7scalesstatmodvctrsviridisLitewithr

Grouped heterogeneous transition networks
Data | One network per cohort | The networks side by side | Centralities per cohort | The sessions of each cohort | Assessing each cohort | A first comparison | Working with the grouped object | References

Last update: 2026-11-20
Started: 2026-11-20

Heterogeneous transition network analysis
The model | Data | Building the network | How the actors hand over | The network plot | Which codes are central | Focusing on the strong transitions | Turn-taking patterns | The sessions over time | How certain are the edges | Are the conclusions stable | Further reading | References

Last update: 2026-11-20
Started: 2026-07-06

Readme and manuals

Help Manual

Help pageTopics
htna: Heterogeneous Transition Network Analysishtna-package htna
AI turns of the vibe-coding sessionsai_simplified
Tabulate the edges and nodes of an htna networkas.data.frame.htna as.data.frame.htna_group
Tabulate centrality stability resultsas.data.frame.htna_stability as.data.frame.htna_stability_group summary.htna_stability_group
Convert an htna network to an igraph graphas.igraph.htna as.igraph.htna_group
Mine association rules from the sessions of a networkassociation_rules_htna
Compare networks edge by edge with a Bayesian modelbayes_compare_htna
Bootstrap a networkbootstrap
Bootstrap the edges of a heterogeneous transition networkbootstrap.htna bootstrap_htna
Build a heterogeneous transition networkbuild_htna
Assess the case-dropping stability of the edge weightscasedrop_reliability_htna
Compute node centralities of an htna networkcentralities_htna
Assess the case-dropping stability of node centralitiescentrality_stability_htna
Estimate the closed-form certainty of the edge weightscertainty_htna
Describe the differences between heterogeneous transition networkscompare_htna
Restore the edges removed by pruningdeprune_htna
Compute the edge betweenness of an htna networkedge_betweenness_htna
Count recurring paths and meta-paths in the sessionsextract_meta_paths
Count the codes of each actor in a networkfrequencies_htna
Print, summarize and tabulate an htna network comparisonas.data.frame.htna_comparison as.data.frame.htna_comparison_group htna_comparison-methods print.htna_comparison print.htna_comparison_group summary.htna_comparison summary.htna_comparison_group
Colours of the actor types in htna plotshtna_palette
Human and AI turns in vibe-coding sessionshuman_ai
Code-to-actor codebook for the vibe-coding datahuman_ai_codebook
Human turns of the vibe-coding sessionshuman_simplified
Test the Markov order of the sessionsmarkov_order_test_htna
Plot a chi-square mosaic of the transitions of an htna networkmosaic_plot_htna
Test differences between networks by permutationpermutation_htna
Plot node centralities of an htna networkplot_centralities
Plot the edge betweenness of an htna networkplot_edge_betweenness_htna
Plot the frequencies of the codes of an htna networkplot_frequencies_htna
Plot a heterogeneous transition networkplot.htna plot.htna_group plot_htna
Plot the bootstrap-assessed edges of an htna networkplot.htna_bootstrap plot_htna_bootstrap
Plot the difference between two htna networksplot_htna_diff
Plot sequencesplot_sequences
Plot the comparisons of a grouped networkplot.htna_comparison_group
Plot centrality stability against the proportion of sessions droppedplot.htna_stability plot.htna_stability_group
Print and summarize the bootstraps of a grouped networkprint.htna_bootstrap_group summary.htna_bootstrap_group
Print a table of paths or meta-pathsprint.htna_paths
Print centrality stability coefficientsprint.htna_stability print.htna_stability_group
Remove weak edges from a heterogeneous transition networkprune_htna
List the edges removed by pruningpruning_details_htna
Estimate the split-half reliability of a heterogeneous transition networkreliability_htna
Re-apply a recorded pruning rulereprune_htna
Compare short sequence patterns between groups of sessionssequence_compare_htna
Plot the sessions of an htna network as sequencesplot_sequences.htna sequence_plot_htna
Tabulate the distribution of the codes within each actorstate_distribution_htna
Count the codes of a network over all actorsstate_frequencies_htna
Summarize a heterogeneous transition networkas.data.frame.summary.htna as.data.frame.summary.htna_group print.summary.htna print.summary.htna_group summary.htna summary.htna_group