Skip to content

Indicator Functions: Sequenzo and TraMineR Mapping ​

This page maps Sequenzo indicator functions to their closest TraMineR counterparts for users migrating from R.

What This Section Covers ​

This section focuses on sequence-level indicators: functions that describe the internal structure of each sequence, such as transitions, entropy, complexity, turbulence, and quality-related scores.

For TraMineR users, you can think of this as the place to compute your core individual indicators first.

How It Relates to statistics ​

After computing indicators here, the statistics section helps you summarize and compare results (for example, descriptive summaries, state-time aggregates, and helper statistics).

In short:

  • sequence-characteristics-indicators answers: "What is the structure/quality of each sequence?"
  • statistics answers: "How do we summarize or compare those outputs?"
Sequenzo functionTraMineR counterpartNotes
get_sequence_lengthTraMineR::seqlength()Direct match for sequence length.
get_spell_durationsTraMineR::seqdur()Direct match for spell durations.
get_visited_statesTraMineR::seqindic(indic="visited")Counts how many states each sequence visits.
get_recurrenceTraMineR::seqindic(indic="recu")Recurrence-style indicator.
get_mean_spell_durationTraMineR::seqivardur() / TraMineR::seqindic() (meand, meand2)Mean spell duration (variant controlled by type).
get_duration_standard_deviationTraMineR::seqivardur() / TraMineR::seqindic() (dustd, dustd2)Spell-duration standard deviation variants.
get_subsequences_all_sequencesTraMineR::seqsubsn()Number of distinct subsequences.
get_number_of_transitionsTraMineR::seqtransn()Number of transitions (including normalized/weighted options).
get_spell_duration_varianceTraMineR::seqivardur()Spell-duration variance (type 1 / type 2).
get_state_freq_and_entropy_per_seqTraMineR::seqistatd()Per-sequence state distribution and related entropy view.
get_within_sequence_entropyTraMineR::seqient()Within-sequence entropy.
get_entropy_differenceTraMineR internal seqientdiff()Entropy-difference indicator.
get_cross_sectional_entropyTraMineR::seqstatd()Cross-sectional distribution/entropy by time position.
get_volatilityTraMineR::seqivolatility()Volatility indicator.
get_complexity_indexTraMineR::seqici()Complexity index.
get_turbulenceTraMineR::seqST()Turbulence indicator.
get_positive_negative_indicatorsTraMineR::seqipos() / TraMineR::seqindic() binary indicatorsBinary-state indicator family.
get_integration_indexTraMineR::seqintegr()Integration indicator.
get_badness_indexTraMineR::seqibad()Ranked indicator.
get_degradation_indexTraMineR::seqidegrad()Ranked indicator.
get_precarity_indexTraMineR::seqprecarity()Ranked indicator.
get_insecurity_indexTraMineR::seqinsecurity()Ranked indicator.

Authors ​

Code and documentation: Yuqi Liang

References ​

Gabadinho, A., G. Ritschard, N. S. Müller and M. Studer (2011). Analyzing and Visualizing State Sequences in R with TraMineR. Journal of Statistical Software 40(4), 1-37.

Ritschard, G. (2023), "Measuring the nature of individual sequences", Sociological Methods and Research, 52(4), 2016-2049. doi:10.1177/00491241211036156.

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