Skip to content

Statistical Helpers: Sequenzo and TraMineR Mapping

This page maps Sequenzo statistics functions to their closest R counterparts for users migrating from R. Most sequence summaries align with TraMineR core; the general weighted helpers are not TraMineR-specific public APIs.

What This Section Covers

The statistics section focuses on aggregation and reporting helpers after core sequence indicators are computed.

  • sequence-characteristics-indicators asks: "Which value does each sequence get?"
  • statistics asks: "How do we summarize those values and distributions?"

Mapping Table

Sequenzo functionR counterpartNotes
get_distinct_state_sequencesTraMineR::seqdss()In code, implemented via TraMineR::seqdss() (sequence_statistics.py).
get_state_spell_durationsTraMineR::seqdur()In code, implemented via TraMineR::seqdur() (sequence_statistics.py).
get_mean_time_by_stateTraMineR::seqmeant()In code/docstring marked equivalent to TraMineR::seqmeant().
get_individual_state_distributionTraMineR::seqistatd()In code/docstring marked equivalent to TraMineR::seqistatd().
get_modal_state_sequenceTraMineR::seqmodst()In code/docstring marked equivalent to TraMineR::seqmodst().
get_sequence_length_summaryTraMineR::seqlength() (summary table added in Sequenzo)Sequenzo computes TraMineR::seqlength()-style values, then returns summary stats (count, mean, median, q1, q3, etc.).
get_transition_count_summaryTraMineR::seqtransn() (summary table added in Sequenzo)Sequenzo computes TraMineR::seqtransn()-style values, then returns summary stats (count, mean, median, q1, q3, etc.).
get_weighted_meanstats::weighted.mean()In code/docstring marked equivalent to stats::weighted.mean() helper behavior.
get_weighted_varianceNo TraMineR public counterpart; closest behavior is TraMineR internal wtd.var()-style weighted varianceGeneral weighted numeric summary, not a TraMineR sequence-analysis entry point.
get_weighted_five_number_summaryNo TraMineR public counterpart; general weighted quantile/five-number summary helperGeneral weighted descriptive summary, not a TraMineR sequence-analysis entry point.

Authors

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