Package: Nestimate 0.9.26

Mohammed Saqr

Nestimate: Dynamic, Probabilistic, and Higher-Order Network Analysis

Estimate, compare, and analyze dynamic and psychological networks using a unified interface. Provides transition network analysis estimation (transition, frequency, co-occurrence, attention-weighted) Saqr et al. (2025) <doi:10.1145/3706468.3706513>, psychological network methods (correlation, partial correlation, 'graphical lasso', 'Ising') Saqr, Beck, and Lopez-Pernas (2024) <doi:10.1007/978-3-031-54464-4_19>, and higher-order network methods including higher-order networks, higher-order network embedding, hyper-path anomaly, and multi-order generative model. Supports bootstrap inference, permutation testing, split-half reliability, centrality stability analysis, mixed Markov models, multi-cluster multi-layer networks and clustering.

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

Nestimate_0.9.26.tar.gz
Nestimate_0.9.26.zip(r-4.7-any)Nestimate_0.9.26.zip(r-4.6-any)Nestimate_0.9.26.zip(r-4.5-any)
Nestimate_0.9.26.tgz(r-4.6-any)Nestimate_0.9.26.tgz(r-4.5-any)
Nestimate_0.9.26.tar.gz(r-4.7-any)Nestimate_0.9.26.tar.gz(r-4.6-any)
Nestimate_0.9.26.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
Nestimate/json (API)

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

Bug tracker:https://github.com/mohsaqr/nestimate/issues

Pkgdown/docs site:https://pak.dynasite.org

Datasets:

On CRAN:

Conda:

7.59 score 3 stars 2 packages 29 scripts 385 downloads 136 exports 30 dependencies

Last updated from:57941e9406. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK239
source / vignettesOK308
linux-releaseOK226
macos-releaseOK232
macos-oldrelOK172
windows-develOK162
windows-releaseOK178
windows-oldrelOK128
wasm-releaseOK136

Exports:action_to_onehotactor_endpointsas_htnaas_netdifferenceas_netobjectas_networksas_tnaassociation_rulesbayes_comparebetti_numbersbipartite_groupsboot_glassobootstrap_networkbottleneck_distancebuild_atnabuild_clustersbuild_cnabuild_corbuild_ftnabuild_gimmebuild_glassobuild_honbuild_honembuild_hypabuild_hypergraphbuild_isingbuild_mcmlbuild_mcml_pcbuild_mlvarbuild_mmmbuild_mogenbuild_networkbuild_pcorbuild_simplicialbuild_tnacasedrop_reliabilitycentrality_stabilitycertaintychain_structureclique_expansioncluster_choicecluster_datacluster_diagnosticscluster_mmmcluster_networkcluster_summarycoefscompare_mmmcompare_modelcompare_networkscompositesconvert_sequence_formatcooccurrencedistribution_plotedge_differenceseffects_tableentropy_bayesentropy_networkentropy_trajectoryestimate_networkeuler_characteristicevaluate_linksextract_edgesextract_initial_probsextract_pathwaysextract_transition_matrixfrequenciesget_estimatorglobal_differenceshypergraph_centralityhypergraph_clusterhypergraph_laplacianhypergraph_measureshypergraph_transductionitem_loadingslist_estimatorsloading_stabilitylong_to_widemacro_networkmagnitude_differencemark_first_statemark_terminal_statemarkov_order_testmarkov_stabilitymogen_transitionsmosaic_analysismosaic_plotnctnet_aggregate_weightsnet_centralitynet_deprunenet_edge_betweennessnet_prunenet_pruning_detailsnet_reprunenetwork_metricsnetwork_reliabilitynode_differencesoutcome_modelpassage_timepath_countspath_dependencepathwayspermutationpermutation_diagnosticspersistence_landscapepersistent_homologyplot_mosaicplot_state_frequenciespredict_linkspredictabilityprepareprepare_for_tnaprepare_onehotq_analysisregister_estimatorremove_estimatorrename_modelssequence_comparesequence_plotsession_idsset_state_colorssimplicial_degreesimplicial_featuresstate_colorsstate_colors<-state_distributionstate_frequenciessubtract_networkstransition_entropyvalidate_netobjectverify_simplicialvertex_bootstrapvertex_comparewide_to_longwtna

Dependencies:brglm2cliclustercpp11data.tableenrichwithfarverggplot2gluegtableidiographicisobandlabelinglatticelifecycleMASSMatrixnleqslvnnetnumDerivpsychnetsR6RColorBrewerrlangS7scalesstatmodvctrsviridisLitewithr

Transition Matrix Entropy
The entropy of a transition network | Which states are decision points? | The entropy network | Entropy over time | Bayesian estimation | When to use which | References

Last update: 2026-08-21
Started: 2026-08-21

Sequence Clustering
Introduction | Data | Dissimilarity-based Clustering | Visualizing Clusters | Distance Metrics | Clustering Methods | Choosing k, dissimilarity, and method | Validating the choice with cluster_diagnostics() | Mixture Markov Models | Building Networks per Cluster | From build_clusters() to per-cluster networks | Shortcut: cluster_network() (distance-based) | Fitted MMM clustering and its networks | Comparing Clusters | Workflow Summary

Last update: 2026-07-21
Started: 2026-03-27

Network Estimation and Analysis with Nestimate
Part I: Transition Network Analysis | Theoretical Grounding | Data | Building Networks | Transition Network (TNA) | Frequency Network (FTNA) | Attention Network (ATNA) | Co-occurrence Network from Binary Data | Window-based TNA (WTNA) | Mixed Network (Transitions + Co-occurrences) | Validation | Reliability | Bootstrap Analysis | Centrality Stability | Clustering | Permutation Test for Clusters | Post-hoc Covariate Analysis | Part II: Psychological Network Analysis | Regularized Network (EBICglasso) | References

Last update: 2026-05-22
Started: 2026-03-25

Markov Stability Analysis
Data | Selecting mostly-active learners | Sequence plots | Transition networks | Mean First Passage Times | Stationary distribution | Markov Stability

Last update: 2026-05-20
Started: 2026-04-18

Sequence Pattern Comparison: Early vs Late Human-AI Interactions
1. The dataset | 2. Split by time — early vs late interactions | 3. Build the grouped network | 4. Compare patterns between early and late | How to read the residuals | 5. Pyramid plot | 6. Heatmap | 7. Sort by frequency | 9. Note on the test choice

Last update: 2026-05-20
Started: 2026-04-18

Sequence Plots: heatmap, index, and distribution
The dataset | 1. type = "heatmap" — clustered carpet | 1.1 Default — LCS distance, ward.D2 dendrogram | 1.2 Switch the sort strategy | 1.3 Cluster separators with k | 1.4 Legend position, custom palette, title | 1.5 Cell borders + tick thinning | 1.6 frame = TRUE brings back the outer box | 2. type = "index" — gap-ready carpet with facets | 2.1 Single panel | 2.2 Visible row gaps | 2.3 Faceted by net_clustering (auto 2×2 for k = 3) | 2.4 Force a 1×3 row | 3. type = "distribution" — state proportions over time | 3.1 Default stacked area | 3.2 Stacked bars, count scale | 3.3 NA band on/off | 3.4 Faceted by cluster | Cheat sheet

Last update: 2026-05-20
Started: 2026-04-18

Readme and manuals

Help Manual

Help pageTopics
Convert Action Column to One-Hot Encodingaction_to_onehot
Tidy per-actor endpoint summary of a wide-format sequence datasetactor_endpoints
Build a grouped node-level network (htna) from data and a clusteringas_htna as_htna.default as_htna.mcml as_htna.net_mmm
Coerce an inferential comparison to a network differenceas_netdifference as_netdifference.default as_netdifference.netdifference as_netdifference.net_bayes
Coerce a network object to a Nestimate netobjectas_netobject as_netobject.cograph_network as_netobject.default as_netobject.netobject as_netobject.psychnet
Promote a psychometric MCML result to a network groupas_networks as_networks.default as_networks.mcml_pc
Promote the Layers of an mcml to Networksas_tna as_tna.default as_tna.mcml
Discover Association Rules from Sequential or Transaction Dataassociation_rules plot.net_association_rules print.net_association_rules summary.net_association_rules
Bayesian Dirichlet-Multinomial comparison of two transition networksbayes_compare plot.net_bayes print.net_bayes print.net_bayes_group summary.net_bayes summary.net_bayes_group
Betti Numbersbetti_numbers
Hypergraph from bipartite group / event databipartite_groups
Bootstrap for Regularized Partial Correlation Networksboot_glasso plot.boot_glasso print.boot_glasso summary.boot_glasso
Bootstrap a Network Estimatebootstrap_network print.net_bootstrap print.net_bootstrap_group print.wtna_boot_mixed summary.net_bootstrap summary.net_bootstrap_group summary.wtna_boot_mixed
Bottleneck Distance Between Persistence Diagramsbottleneck_distance
Build an Attention-Weighted Transition Network (ATNA)build_atna
Cluster Sequences by Dissimilaritybuild_clusters plot.net_clustering print.net_clustering print.tidy_covariates summary.net_clustering
Build a Co-occurrence Network (CNA)build_cna
Build a Correlation Networkbuild_cor
Build a Frequency Transition Network (FTNA)build_ftna
GIMME: Group Iterative Multiple Model Estimationbuild_gimme
Build a Graphical Lasso Network (EBICglasso)build_glasso
Build a Higher-Order Network (HON)build_hon print.net_hon summary.net_hon
Build HONEM Embeddings for Higher-Order Networksbuild_honem plot.net_honem print.net_honem summary.net_honem
Detect Path Anomalies via HYPAbuild_hypa print.net_hypa summary.net_hypa
Higher-order hypergraph from a network's clique structurebuild_hypergraph print.net_hypergraph summary.net_hypergraph
Build an Ising Networkbuild_ising
Build MCML from Raw Transition Databuild_mcml print.mcml print.mcml_layer summary.mcml
Multi-Cluster Multi-Level Aggregation for Psychometric Networksbuild_mcml_pc plot.mcml_pc print.mcml_pc summary.mcml_pc
Build a Multilevel Vector Autoregression (mlVAR) networkbuild_mlvar print.net_mlvar summary.net_mlvar
Fit a Mixed Markov Modelbuild_mmm plot.net_mmm plot.net_mmm_clustering print.net_mmm print.net_mmm_clustering summary.net_mmm
Build Multi-Order Generative Model (MOGen)build_mogen plot.net_mogen print.net_mogen summary.net_mogen
Build a Networkbuild_network print.netobject print.netobject_group print.netobject_ml print.summary.netobject print.summary.netobject_group summary.netobject summary.netobject_group
Build a Partial Correlation Networkbuild_pcor
Build a Simplicial Complexbuild_simplicial plot.simplicial_complex print.simplicial_complex
Build a Transition Network (TNA)build_tna
Edge-weight Case-dropping Stabilitycasedrop_reliability plot.net_casedrop_reliability plot.net_casedrop_reliability_group print.net_casedrop_reliability print.net_casedrop_reliability_group print.summary.net_casedrop_reliability_group summary.net_casedrop_reliability summary.net_casedrop_reliability_group
Centrality Stability Coefficient (CS-coefficient)centrality_stability plot.net_stability print.net_stability print.net_stability_group summary.net_stability summary.net_stability_group
Analytic certainty of network edges (Bayesian Dirichlet-Multinomial)certainty print.net_certainty
Qualitative structure of a discrete-time Markov chainchain_structure plot.chain_structure print.chain_structure print.chain_structure_group print.summary_chain_structure summary.chain_structure summary.chain_structure_group
ChatGPT Self-Regulated Learning Scale Scoreschatgpt_srl
Clique expansion of a hypergraphclique_expansion
Cluster Choice - sweep k, dissimilarity and methodcluster_choice plot.cluster_choice print.cluster_choice summary.cluster_choice
Cluster Diagnosticsas.data.frame.net_cluster_diagnostics cluster_diagnostics plot.net_cluster_diagnostics print.net_cluster_diagnostics
Cluster sequences using Mixed Markov Modelscluster_mmm
Cluster data and build per-cluster networks in one stepcluster_network
Cluster Summary Statisticscluster_summary
Tidy coefficients from a fitted mlvar modelcoefs coefs.default coefs.net_mlvar
Compare MMM fits across different kcompare_mmm plot.mmm_compare print.mmm_compare summary.mmm_compare
Compare two networks descriptivelycompare_model compare_model.cograph_network compare_model.matrix compare_model.netobject compare_model.netobject_group plot.net_comparison print.net_comparison
Compare two or more networkscompare_networks plot.net_network_comparison print.net_network_comparison
Tables of a network comparisoncomparison_tables edge_differences global_differences network_metrics node_differences print.net_table summary.net_network_comparison
Cluster Scores From a Psychometric MCML Fitcomposites composites.mcml_pc
Convert Sequence Data to Different Formatsconvert_sequence_format
Build a Co-occurrence Networkcooccurrence
State Distribution Plot Over Timedistribution_plot
Effect Table of a Fitted Outcome Modeleffects_table
Bayesian Transition Entropyentropy_bayes plot.net_entropy_bayes print.net_entropy_bayes print.net_entropy_bayes_group summary.net_entropy_bayes
Transition Entropy Networkentropy_network
Sliding-Window Transition Entropy Trajectoryentropy_trajectory plot.net_entropy_trajectory print.net_entropy_trajectory summary.net_entropy_trajectory
Estimate a Network (Deprecated)estimate_network
Euler Characteristiceuler_characteristic
Evaluate Link Predictions Against Known Edgesevaluate_links
Extract Edge List with Weightsextract_edges
Extract Initial Probabilities from Modelextract_initial_probs summary.nest_initial_probs
Cut an Event Log into Pathwaysextract_pathways
Extract Transition Matrix from Modelextract_transition_matrix summary.nest_transition_matrix
Build a Transition Frequency Matrixfrequencies summary.nest_transition_counts
Retrieve a Registered Estimatorget_estimator
Group Regulation in Collaborative Learning (Long Format)group_regulation_long
Hypergraph eigenvector centralitieshypergraph_centrality
Spectral clustering of hypergraph verticesas.data.frame.net_hypergraph_cluster hypergraph_cluster plot.net_hypergraph_cluster print.net_hypergraph_cluster summary.net_hypergraph_cluster
Normalized hypergraph Laplacianhypergraph_laplacian
Structural measures for a hypergraphhypergraph_measures print.hypergraph_measures
Transductive label spreading on a hypergraphas.data.frame.net_hypergraph_transduction hypergraph_transduction plot.net_hypergraph_transduction print.net_hypergraph_transduction summary.net_hypergraph_transduction
Item Diagnostics From a Psychometric MCML Fititem_loadings item_loadings.mcml_pc
Online Learning Activity Indicatorslearning_activities
List All Registered Estimatorslist_estimators
Composite-Weight Stability Under Case Resamplingloading_stability plot.pc_loading_stability print.pc_loading_stability
Convert Long Format to Wide Sequenceslong_to_wide
Human-AI Vibe Coding Interaction Data (Long Format)ai_long human_long long-data
Cluster-Level Network, With One Cluster Expandedmacro_network
Magnitude difference between the frequency and probability viewsmagnitude_difference plot.magnitude_difference print.magnitude_difference
Mark leading-NA cells with an explicit state labelmark_first_state
Mark terminal-NA cells with an explicit state labelmark_terminal_state
Test the Markov order of a sequential processmarkov_order_test plot.net_markov_order print.net_markov_order print.net_markov_order_group summary.net_markov_order
Markov Stability Analysismarkov_stability plot.net_markov_stability print.net_markov_stability print.net_markov_stability_group summary.net_markov_stability
Extract Transition Table from a MOGen Modelmogen_transitions
Two-variable mosaic analysis (chi-square test + flat mosaic)mosaic_analysis plot.mosaic_analysis print.mosaic_analysis summary.mosaic_analysis
Mosaic Plot of a Network's Transition or Co-occurrence Countsmosaic_plot mosaic_plot.default mosaic_plot.htna mosaic_plot.matrix mosaic_plot.mcml mosaic_plot.netobject mosaic_plot.netobject_group mosaic_plot.table
Network Comparison Testnct print.net_nct summary.net_nct
Aggregate Edge Weightsnet_aggregate_weights
Compute Centrality Measures for a Networknet_centrality plot.net_centrality plot.net_centrality_group
Undo Network Pruningnet_deprune net_deprune.default net_deprune.netobject net_deprune.netobject_group
Edge Betweenness Networknet_edge_betweenness net_edge_betweenness.default net_edge_betweenness.netobject net_edge_betweenness.netobject_group plot.net_edge_betweenness
Prune a Network's Edgesnet_prune net_prune.default net_prune.netobject net_prune.netobject_group
Report Network Pruning Detailsnet_pruning_details net_pruning_details.default net_pruning_details.netobject net_pruning_details.netobject_group print.net_pruning_details
Re-apply Network Pruningnet_reprune net_reprune.default net_reprune.netobject net_reprune.netobject_group
Split-Half Reliability for Network Estimatesnetwork_reliability plot.net_reliability print.net_reliability summary.net_reliability
Model Unit-Level Outcomes from Sequence or Network Predictorsoutcome_model plot.net_outcome_model print.net_outcome_model summary.net_outcome_model
Mean First Passage Timespassage_time plot.net_mpt print.net_mpt print.net_mpt_group print.summary.net_mpt summary.net_mpt
Count Path Frequencies in Trajectory Datapath_counts
Per-Context Path Dependence at Order kpath_dependence plot.net_path_dependence print.net_path_dependence print.summary.net_path_dependence summary.net_path_dependence
Extract Pathways from Higher-Order Network Objectspathways pathways.netobject pathways.net_association_rules pathways.net_hon pathways.net_hypa pathways.net_link_prediction pathways.net_mogen
Permutation Test for Network Comparisonpermutation print.net_permutation print.net_permutation_group print.wtna_perm_mixed summary.net_permutation summary.net_permutation_group summary.wtna_perm_mixed
Does Nesting Bias a Permutation Test?permutation_diagnostics
Persistence Landscapepersistence_landscape plot.persistence_landscape print.persistence_landscape
Persistent Homologypersistent_homology plot.persistent_homology print.persistent_homology
Draw a Marimekko / Mosaic Plot from a Tidy Data Frameplot_mosaic
Plot State Frequency Distributionsas.data.frame.state_freq plot.state_freq plot_state_frequencies plot_state_frequencies.default plot_state_frequencies.htna plot_state_frequencies.mcml plot_state_frequencies.netobject plot_state_frequencies.netobject_group print.nestimate_facet_list print.nestimate_facet_plot print.state_freq state_freq
Predict Missing or Future Links in a Networkpredict_links print.net_link_prediction summary.net_link_prediction
Compute Node Predictabilitypredictability predictability.netobject predictability.netobject_group predictability.netobject_ml
Prepare Event Log Data for Network Estimationprepare print.nestimate_data
Prepare Data for TNA Analysisprepare_for_tna
Import One-Hot Encoded Data into Sequence Formatprepare_onehot
Q-Analysisplot.q_analysis print.q_analysis q_analysis
Register a Network Estimatorregister_estimator
Remove a Registered Estimatorremove_estimator
Rename the models of a 'netobject_group'rename_models rename_models.default rename_models.netobject_group
Compare Subsequence Patterns Between Groupsplot.net_sequence_comparison print.net_sequence_comparison sequence_compare summary.net_sequence_comparison
Sequence Plot (heatmap, index, or distribution)print.mcml_sequence_plot sequence_plot
The session behind each sequencesession_ids session_ids.default session_ids.netobject session_ids.net_clustering session_ids.net_mmm
Set the state colours carried by a network objectset_state_colors set_state_colors.default set_state_colors.htna set_state_colors.mcml set_state_colors.netobject set_state_colors.netobject_group state_colors<-
Simplicial Degreesimplicial_degree
Tidy Topological Features for One or Many Networkssimplicial_features
Self-Regulated Learning Strategy Frequenciessrl_strategies
The state colours an object will draw withstate_colors state_colors.default state_colors.htna state_colors.mcml state_colors.netobject state_colors.netobject_group
Per-Class State Distribution as a Tidy Data Framestate_distribution state_distribution.default state_distribution.htna state_distribution.mcml state_distribution.netobject state_distribution.netobject_group
Compute State Frequencies from Trajectory Datastate_frequencies
Subtract one network from anotherprint.netdifference subtract_networks
Student Engagement Trajectoriestrajectories
Transition Entropy of a Markov Chainplot.net_transition_entropy print.net_transition_entropy print.net_transition_entropy_group print.summary.net_transition_entropy summary.net_transition_entropy transition_entropy
Validate a netobject / cograph_network against the shared schemavalidate_netobject
Verify Simplicial Complex Against igraphverify_simplicial
Vertex Bootstrap for Network-Level Statisticsplot.net_vertex_bootstrap print.net_vertex_bootstrap summary.net_vertex_bootstrap vertex_bootstrap
Compare Network-Level Statistics of Two Networksplot.net_vertex_comparison print.net_vertex_comparison summary.net_vertex_comparison vertex_compare
Convert Wide Sequences to Long Formatwide_to_long
Window-based Transition Network Analysisprint.wtna_mixed wtna