Package: Nestimate 0.8.4

Mohammed Saqr

Nestimate: Network Estimation, Bootstrap, and Higher-Order 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.8.4.tar.gz
Nestimate_0.8.4.zip(r-4.7)Nestimate_0.8.4.zip(r-4.6)Nestimate_0.8.4.zip(r-4.5)
Nestimate_0.8.4.tgz(r-4.6-any)Nestimate_0.8.4.tgz(r-4.5-any)
Nestimate_0.8.4.tar.gz(r-4.7-any)Nestimate_0.8.4.tar.gz(r-4.6-any)
Nestimate_0.8.4.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://saqr.me

Datasets:

On CRAN:

Conda:

6.85 score 2 stars 1 packages 26 scripts 431 downloads 113 exports 28 dependencies

Last updated from:e1b14ab1ac. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK330
source / vignettesOK295
linux-release-x86_64OK264
macos-release-arm64OK290
macos-oldrel-arm64OK339
windows-develOK323
windows-releaseOK329
windows-oldrelOK328
wasm-releaseOK131

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_modelconvert_sequence_formatcooccurrencedistribution_plotestimate_networkeuler_characteristicevaluate_linksextract_edgesextract_initial_probsextract_transition_matrixfrequenciesget_estimatorhypergraph_centralityhypergraph_measureslist_estimatorsloading_stabilitylong_to_widemagnitude_differencemark_first_statemark_terminal_statemarkov_order_testmarkov_stabilitymogen_transitionsmosaic_analysismosaic_plotnctnet_aggregate_weightsnet_centralitynet_deprunenet_edge_betweennessnet_prunenet_pruning_detailsnet_reprunenetwork_reliabilitypassage_timepath_countspath_dependencepathwayspermutationpersistence_landscapepersistent_homologyplot_mosaicplot_state_frequenciespredict_linkspredictabilityprepareprepare_for_tnaprepare_onehotq_analysisregister_estimatorremove_estimatorrename_modelssequence_comparesequence_plotsimplicial_degreestate_distributionstate_frequenciessubtract_networkstransition_entropyvalidate_netobjectverify_simplicialvertex_bootstrapvertex_comparewide_to_longwtna

Dependencies:brglm2cliclustercpp11data.tableenrichwithfarverggplot2gluegtableisobandlabelinglatticelifecycleMASSMatrixnleqslvnnetnumDerivR6RColorBrewerrlangS7scalesstatmodvctrsviridisLitewithr

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
Convert cluster_summary to tna Objectsas_tna as_tna.default as_tna.mcml
Discover Association Rules from Sequential or Transaction Dataassociation_rules
Bayesian Dirichlet-Multinomial comparison of two transition networksbayes_compare
Betti Numbersbetti_numbers
Hypergraph from bipartite group / event databipartite_groups
Bootstrap for Regularized Partial Correlation Networksboot_glasso
Bootstrap a Network Estimatebootstrap_network
Bottleneck Distance Between Persistence Diagramsbottleneck_distance
Build an Attention-Weighted Transition Network (ATNA)build_atna
Cluster Sequences by Dissimilaritybuild_clusters
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
Build HONEM Embeddings for Higher-Order Networksbuild_honem
Detect Path Anomalies via HYPAbuild_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
Multi-Cluster Multi-Level Aggregation for Psychometric Networksbuild_mcml_pc
Build a Multilevel Vector Autoregression (mlVAR) networkbuild_mlvar
Fit a Mixed Markov Modelbuild_mmm
Build Multi-Order Generative Model (MOGen)build_mogen
Build a Networkbuild_network
Build a Partial Correlation Networkbuild_pcor
Build a Simplicial Complexbuild_simplicial
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
Analytic certainty of network edges (Bayesian Dirichlet-Multinomial)certainty
Qualitative structure of a discrete-time Markov chainchain_structure
ChatGPT Self-Regulated Learning Scale Scoreschatgpt_srl
Clique expansion of a hypergraphclique_expansion
Cluster Choice - sweep k, dissimilarity and methodcluster_choice
Cluster Diagnosticsas.data.frame.net_cluster_diagnostics 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
Compare two networks descriptivelycompare_model compare_model.cograph_network compare_model.matrix compare_model.netobject
Compare two networks within a netobject_groupcompare_model.netobject_group
Convert Sequence Data to Different Formatsconvert_sequence_format
Build a Co-occurrence Networkcooccurrence
State Distribution Plot Over Timedistribution_plot
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
Extract Transition Matrix from Modelextract_transition_matrix
Sequence Data Conversion Functionsfrequencies
Retrieve a Registered Estimatorget_estimator
Group Regulation in Collaborative Learning (Long Format)group_regulation_long
Hypergraph eigenvector centralitieshypergraph_centrality
Structural measures for a hypergraphhypergraph_measures print.hypergraph_measures
Online Learning Activity Indicatorslearning_activities
List All Registered Estimatorslist_estimators
Composite-Weight Stability Under Case Resamplingloading_stability
Convert Long Format to Wide Sequenceslong_to_wide
Human-AI Vibe Coding Interaction Data (Long Format)ai_long human_long long-data
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
Markov Stability Analysismarkov_stability plot.net_markov_stability
Extract Transition Table from a MOGen Modelmogen_transitions
Two-variable mosaic analysis (chi-square test + flat mosaic)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
Aggregate Edge Weightsnet_aggregate_weights
Compute Centrality Measures for a Networknet_centrality
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
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
Re-apply Network Pruningnet_reprune net_reprune.default net_reprune.netobject net_reprune.netobject_group
Split-Half Reliability for Network Estimatesnetwork_reliability
Mean First Passage Timespassage_time plot.net_mpt summary.net_mpt
Count Path Frequencies in Trajectory Datapath_counts
Per-Context Path Dependence at Order kpath_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
Persistence Landscapepersistence_landscape
Persistent Homologypersistent_homology
Draw a Marimekko / Mosaic Plot from a Tidy Data Frameplot_mosaic
Plot State Frequency Distributionsplot_state_frequencies plot_state_frequencies.default plot_state_frequencies.htna plot_state_frequencies.mcml plot_state_frequencies.netobject plot_state_frequencies.netobject_group
Plot Method for boot_glassoplot.boot_glasso
Plot method for 'chain_structure'plot.chain_structure
Plot Method for cluster_choiceplot.cluster_choice
Plot an MCML-PC Objectplot.mcml_pc
Plot Method for mmm_compareplot.mmm_compare
Plot method for mosaic_analysis objectsplot.mosaic_analysis
Plot Method for net_association_rulesplot.net_association_rules
Plot method for net_bayesplot.net_bayes
Plot centrality measuresplot.net_centrality
Plot grouped centrality measuresplot.net_centrality_group
Plot Method for net_cluster_diagnosticsplot.net_cluster_diagnostics
Plot Sequence Clustering Resultsplot.net_clustering
Plot a network comparisonplot.net_comparison
Plot edge-betweenness scoresplot.net_edge_betweenness
Plot Method for net_gimmeplot.net_gimme
Plot Method for net_honemplot.net_honem
Plot Method for net_markov_orderplot.net_markov_order
Plot Method for net_mmmplot.net_mmm
Plot Method for MMM Clustering Attributeplot.net_mmm_clustering
Plot Method for net_mogenplot.net_mogen
Plot method for 'net_path_dependence'plot.net_path_dependence
Plot Method for net_reliabilityplot.net_reliability
Plot Method for net_sequence_comparisonplot.net_sequence_comparison
Plot Method for net_stabilityplot.net_stability
Plot method for 'net_transition_entropy'plot.net_transition_entropy
Plot Vertex Bootstrap Distributionsplot.net_vertex_bootstrap
Plot a Two-Network Vertex-Bootstrap Comparisonplot.net_vertex_comparison
Plot Composite-Weight Stabilityplot.pc_loading_stability
Plot Persistence Landscapeplot.persistence_landscape
Plot Persistent Homologyplot.persistent_homology
Plot Q-Analysisplot.q_analysis
Plot a Simplicial Complexplot.simplicial_complex
Predict Missing or Future Links in a Networkpredict_links
Compute Node Predictabilitypredictability predictability.netobject predictability.netobject_group predictability.netobject_ml
Prepare Event Log Data for Network Estimationprepare
Prepare Data for TNA Analysisprepare_for_tna
Import One-Hot Encoded Data into Sequence Formatprepare_onehot
Print Method for boot_glassoprint.boot_glasso
Print method for 'chain_structure'print.chain_structure
Print method for 'chain_structure_group'print.chain_structure_group
Print Method for cluster_choiceprint.cluster_choice
Print Method for mcmlprint.mcml
Print Method for an mcml Layerprint.mcml_layer
Print an MCML-PC Objectprint.mcml_pc
Print Method for mmm_compareprint.mmm_compare
Print method for mosaic_analysis objectsprint.mosaic_analysis
Print Method for nestimate_dataprint.nestimate_data
Print Method for net_association_rulesprint.net_association_rules
Print method for net_bayesprint.net_bayes
Print method for net_bayes_groupprint.net_bayes_group
Print Method for net_bootstrapprint.net_bootstrap
Print Method for net_bootstrap_groupprint.net_bootstrap_group
Print Method for net_certaintyprint.net_certainty
Print Method for net_cluster_diagnosticsprint.net_cluster_diagnostics
Print Method for net_clusteringprint.net_clustering
Print Method for net_gimmeprint.net_gimme
Print Method for net_honprint.net_hon
Print Method for net_honemprint.net_honem
Print Method for net_hypaprint.net_hypa
Print Method for net_link_predictionprint.net_link_prediction
Print Method for net_markov_orderprint.net_markov_order
Print method for 'net_markov_order_group'print.net_markov_order_group
Print method for 'net_markov_stability_group'print.net_markov_stability_group
Print method for net_mlvarprint.net_mlvar
Print Method for net_mmmprint.net_mmm
Print Method for MMM Clustering Attributeprint.net_mmm_clustering
Print Method for net_mogenprint.net_mogen
Print method for 'net_mpt_group'print.net_mpt_group
Print Method for net_nctprint.net_nct
Print method for 'net_path_dependence'print.net_path_dependence
Print Method for net_permutationprint.net_permutation
Print Method for net_permutation_groupprint.net_permutation_group
Print method for pruning detailsprint.net_pruning_details
Print Method for net_reliabilityprint.net_reliability
Print Method for net_sequence_comparisonprint.net_sequence_comparison
Print Method for net_stabilityprint.net_stability
Print Method for net_stability_groupprint.net_stability_group
Print method for 'net_transition_entropy'print.net_transition_entropy
Print method for 'net_transition_entropy_group'print.net_transition_entropy_group
Print a Vertex Bootstrap Resultprint.net_vertex_bootstrap
Print a Two-Network Vertex-Bootstrap Comparisonprint.net_vertex_comparison
Print Method for Network Objectprint.netobject
Print Method for Group Network Objectprint.netobject_group
Print Method for Multilevel Network Objectprint.netobject_ml
Print Composite-Weight Stabilityprint.pc_loading_stability
Print Persistence Landscapeprint.persistence_landscape
Print persistent homology resultsprint.persistent_homology
Print Q-analysis resultsprint.q_analysis
Print a simplicial complexprint.simplicial_complex
Print method for 'summary.chain_structure'print.summary_chain_structure
Print method for 'summary.net_path_dependence'print.summary.net_path_dependence
Print method for 'summary.net_transition_entropy'print.summary.net_transition_entropy
Print method for tidy covariate outputprint.tidy_covariates
Print Method for wtna_boot_mixedprint.wtna_boot_mixed
Print Method for wtna_mixedprint.wtna_mixed
Print Method for wtna_perm_mixedprint.wtna_perm_mixed
Q-Analysisq_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 Groupssequence_compare
Sequence Plot (heatmap, index, or distribution)sequence_plot
Simplicial Degreesimplicial_degree
Self-Regulated Learning Strategy Frequenciessrl_strategies
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
Print, Plot, and Convert a state_freq Objectas.data.frame.state_freq plot.state_freq print.state_freq state_freq
Compute State Frequencies from Trajectory Datastate_frequencies
Subtract one network from anotherprint.netdifference subtract_networks
Summary Method for boot_glassosummary.boot_glasso
Tidy per-state summary of a 'chain_structure'summary.chain_structure
Cross-group comparison of 'chain_structure_group'summary.chain_structure_group
Summary Method for cluster_choicesummary.cluster_choice
Summary Method for mcmlsummary.mcml
Summarize an MCML-PC Objectsummary.mcml_pc
Summary Method for mmm_comparesummary.mmm_compare
Summary method for mosaic_analysis objectssummary.mosaic_analysis
Summary Method for Initial Probability Vectorssummary.nest_initial_probs
Summary Method for Transition Count Matricessummary.nest_transition_counts
Summary Method for Transition Matricessummary.nest_transition_matrix
Summary Method for net_association_rulessummary.net_association_rules
Summary method for net_bayessummary.net_bayes
Summary method for net_bayes_groupsummary.net_bayes_group
Summary Method for net_bootstrapsummary.net_bootstrap
Summary Method for net_bootstrap_groupsummary.net_bootstrap_group
Summary Method for net_clusteringsummary.net_clustering
Summary Method for net_gimmesummary.net_gimme
Summary Method for net_honsummary.net_hon
Summary Method for net_honemsummary.net_honem
Summary Method for net_hypasummary.net_hypa
Summary Method for net_link_predictionsummary.net_link_prediction
Summary Method for net_markov_ordersummary.net_markov_order
Summary method for net_mlvarsummary.net_mlvar
Summary Method for net_mmmsummary.net_mmm
Summary Method for net_mogensummary.net_mogen
Summary Method for net_nctsummary.net_nct
Summary method for 'net_path_dependence'summary.net_path_dependence
Summary Method for net_permutationsummary.net_permutation
Summary Method for net_permutation_groupsummary.net_permutation_group
Summary Method for net_reliabilitysummary.net_reliability
Summary Method for net_sequence_comparisonsummary.net_sequence_comparison
Summary Method for net_stabilitysummary.net_stability
Summary Method for net_stability_groupsummary.net_stability_group
Summary method for 'net_transition_entropy'summary.net_transition_entropy
Summarize a Vertex Bootstrap Resultsummary.net_vertex_bootstrap
Summarize a Two-Network Vertex-Bootstrap Comparisonsummary.net_vertex_comparison
Network metrics for a netobjectsummary.netobject
Network metrics for a netobject_groupsummary.netobject_group
Summary Method for wtna_boot_mixedsummary.wtna_boot_mixed
Summary Method for wtna_perm_mixedsummary.wtna_perm_mixed
Student Engagement Trajectoriestrajectories
Transition Entropy of a Markov Chaintransition_entropy
Validate a netobject / cograph_network against the shared schemavalidate_netobject
Verify Simplicial Complex Against igraphverify_simplicial
Vertex Bootstrap for Network-Level Statisticsvertex_bootstrap
Compare Network-Level Statistics of Two Networksvertex_compare
Convert Wide Sequences to Long Formatwide_to_long
Window-based Transition Network Analysiswtna