Skip to content

Statistical Helpers: Sequenzo and TraMineR Mapping

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

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 functionTraMineR counterpartNotes
get_distinct_state_sequencesseqdssIn code, implemented via seqdss (sequence_statistics.py).
get_state_spell_durationsseqdurIn code, implemented via seqdur (sequence_statistics.py).
get_mean_time_by_stateseqmeantIn code/docstring marked equivalent to seqmeant.
get_individual_state_distributionseqistatdIn code/docstring marked equivalent to seqistatd.
get_modal_state_sequenceseqmodstIn code/docstring marked equivalent to seqmodst.
get_sequence_length_summaryseqlength (summary table added in Sequenzo)Sequenzo computes seqlength-style values, then returns summary stats (count, mean, median, q1, q3, etc.).
get_transition_count_summaryseqtransn (summary table added in Sequenzo)Sequenzo computes seqtransn-style values, then returns summary stats (count, mean, median, q1, q3, etc.).
get_weighted_meanweighted.meanIn code/docstring marked equivalent to weighted.mean helper behavior.
get_weighted_varianceweighted.varIn code/docstring marked equivalent to weighted.var helper behavior.
get_weighted_five_number_summaryweighted.fivenumIn code/docstring marked equivalent to weighted.fivenum helper behavior.