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-indicatorsasks: "Which value does each sequence get?"statisticsasks: "How do we summarize those values and distributions?"
Mapping Table
| Sequenzo function | TraMineR counterpart | Notes |
|---|---|---|
get_distinct_state_sequences | seqdss | In code, implemented via seqdss (sequence_statistics.py). |
get_state_spell_durations | seqdur | In code, implemented via seqdur (sequence_statistics.py). |
get_mean_time_by_state | seqmeant | In code/docstring marked equivalent to seqmeant. |
get_individual_state_distribution | seqistatd | In code/docstring marked equivalent to seqistatd. |
get_modal_state_sequence | seqmodst | In code/docstring marked equivalent to seqmodst. |
get_sequence_length_summary | seqlength (summary table added in Sequenzo) | Sequenzo computes seqlength-style values, then returns summary stats (count, mean, median, q1, q3, etc.). |
get_transition_count_summary | seqtransn (summary table added in Sequenzo) | Sequenzo computes seqtransn-style values, then returns summary stats (count, mean, median, q1, q3, etc.). |
get_weighted_mean | weighted.mean | In code/docstring marked equivalent to weighted.mean helper behavior. |
get_weighted_variance | weighted.var | In code/docstring marked equivalent to weighted.var helper behavior. |
get_weighted_five_number_summary | weighted.fivenum | In code/docstring marked equivalent to weighted.fivenum helper behavior. |