Skip to content

Function Reference

Use this page to find the Sequenzo function, class, or workflow page for a task.

New to Sequenzo? Start with the Quickstart or Typical Workflow. Use this page when you already know the task and need the right function family.

Data Preparation

TaskMain pages
Convert between wide and long formatswide_to_long_format_data() and long_to_wide_format_data()
Check missing valuessummarize_missing_values()
Assign stable IDsassign_unique_ids()
Clean time-column namesclean_time_columns_auto()
Replace numeric cluster IDs with labelsreplace_cluster_id_by_labels()
Work with weightsWorking with Weighted Data

Typical Workflow

TaskMain entry points
Define categorical sequence dataSequenceData
Compute pairwise sequence dissimilaritiesget_distance_matrix()
Cluster sequences hierarchicallyCluster
Cluster with k-medoidsKMedoids
Evaluate cluster qualityClusterQuality
Inspect and summarize cluster resultsClusterResults

Sequence Operations and Distances

TaskMain pages
Concatenate, decompose, recode, shift, and align sequencesSequence Operations
Build substitution-cost matrices or inspect distance helpersDissimilarity Helper Functions
Analyze forward divergence and backward convergencePrefix and Suffix Trees
Choose and normalize sequence dissimilaritiesget_distance_matrix()

Descriptive Statistics and Indicators

TaskMain pages
Compute sequence characteristics indicatorsSequence Characteristics Indicators
Compute weighted descriptive statisticsSequence Summary Statistics
Compare Sequenzo and TraMineR namingFunctions Comparison

Visualization

TaskMain pages
Browse available plot typesVisualization Gallery
Customize palettes and plot optionsVisualization Tools
Plot individual sequences, state distributions, modal states, medoids, and transitionsVisualization Tools

Clustering and Typologies

TaskMain pages
Fit one hierarchical or k-medoids solutionCluster, KMedoids
Compare cluster counts and clustering methodsClustering Extensions
Work with fuzzy memberships or property-based typologiesClustering Extensions
Convert sequence typologies into regression variablesFrom Sequences to Variables
Select representative observed sequencesRepresentative Sequences

Inference, Group Comparison, and Decomposition

TaskMain pages
Run discrepancy analysis and permutation testsDiscrepancy Analysis
Compare sequence groups with likelihood-ratio or BIC testsGroup Comparison
Decompose group differences in sequence outcomesDecomposition
Extract and select interpretable sequence featuresFeature Extraction and Selection

Model-Based Sequence Analysis

TaskMain pages
Build and fit HMMs, MHMMs, NHMMs, or MNHMMsMarkov Chain Models
Map Sequenzo functions to R seqHMMSequenzo and seqHMM Mapping
Compare HMM-family modelsModel Comparison
Bootstrap HMM-family modelsBootstrap Model

Event Sequences, Event History, and Survival

TaskMain pages
Mine event subsequences and event-pattern frequenciesEvent Sequences
Convert between event sequences and TSE formatEvent Sequence Helpers
Analyze sequence histories, SAMM windows, or spell survivalSequence History, SAMM, and Spell Survival

Multidomain, Polyadic, and Relational Analysis

TaskMain pages
Compare domains or build multidomain distancesMultidomain or Polyadic Sequence Analysis
Build CAT, DAT, or IDCD distancesCAT, DAT, IDCD
Scale multidomain workflowsScaling Multidomain Workflows
Analyze level-1 by level-2 relational trajectoriesHierarchical and Relational Sequence Analysis

Big Data Tools

TaskMain pages
Use CLARA for large single-domain sequence clusteringCLARA
Plan large multidomain sequence analysisScaling Multidomain Workflows
Choose scalable clustering toolsBig Data Tools

Uncertainty

TaskMain pages
Assess sensitivity to transition-timing errorTiming Uncertainty

Notes on Completeness

This reference prioritizes stable, user-facing functions and workflows. Low-level helpers are documented on module pages when they are not central enough for a separate page.

Authors

Sequenzo is released under the BSD-3-Clause License; this documentation site source is licensed under MIT.