Skip to content

Event Sequences: Sequenzo and TraMineR Mapping

This page maps Sequenzo event-sequence functions to their closest R counterparts. Most event-sequence functions are in TraMineR core; event-dynamics plotting is in TraMineRextras.

What This Section Covers

This section focuses on event-sequence workflows: creating event-sequence objects, mining subsequences, comparing groups, and plotting event-pattern results.

For TraMineR users, this is the event-sequence analysis layer (seqe* family and related plot methods). Package namespaces are shown explicitly so you can distinguish TraMineR core from extension-package functions.

Mapping Table

Sequenzo functionR counterpartNotes
EventSequenceData.from_tse()/from_state_sequences()TraMineR::seqecreate()Build event-sequence objects from TSE input or from state sequences.
find_frequent_subsequencesTraMineR::seqefsub()Direct conceptual match for frequent subsequence mining.
count_subsequence_occurrencesTraMineR::seqeapplysub()Count subsequence matches per sequence; counting rules align with countMethod in TraMineR::seqeconstraint().
compare_groupsTraMineR::seqecmpgroup()Direct conceptual match for discriminant subsequences across groups.
check_event_subsequence_containmentTraMineR::seqecontain()Check whether a target subsequence appears in each sequence.
plot_subsequence_frequenciesplot() on a TraMineR subseqelist objectPlot support/frequency for mined subsequences; TraMineR registers this as an S3 method.
plot_event_parallel_coordinatesTraMineR::seqpcplot() / TraMineR::seqplot(type="pc")Parallel-coordinate view of event sequencing.
plot_subsequence_group_contrastsplot() on a TraMineR subseqelistchisq objectPlot group contrasts using frequency or residual views; TraMineR registers this as an S3 method.
plot_event_dynamicsTraMineRextras::seqedplot()Survival-style or binned event-rate views of event timing.
compute_event_transition_matrixTraMineR::seqetm()Practical helper for adjacent event-order summaries; not the same as a simultaneous-event transition in TraMineR.
convert_event_sequences_to_tseTraMineR::seqformat(..., to = "TSE")Public TraMineR conversion path. TraMineR also has an internal helper named seqe2TSE; avoid relying on undocumented casing variants.
event_sequence_helpers (is_event_sequence, is_event_sequence_collection, get_event_sequence_lengths, get_event_sequence_weights)TraMineR::is.eseq(), TraMineR::is.seqelist(), TraMineR::seqelength(), TraMineR::seqeweight()Helper functions for object checks and metadata access.

Authors

Code and documentation: Yuqi Liang

Reference

Ritschard, G., Bürgin, R., & Studer, M. (2013). Exploratory Mining of Life Event Histories. In J. J. McArdle & G. Ritschard (Eds.), Contemporary Issues in Exploratory Data Mining in the Behavioral Sciences (pp. 221–253). Routledge.

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