Skip to content

get_entropy_difference()

Computes entropy difference indicator for each sequence.

Function Usage

python
from sequenzo.sequence_characteristics_indicators import get_entropy_difference
result = get_entropy_difference(seqdata, norm=True)

Entry Parameters

  • seqdata: SequenceData object.
  • norm: return normalized entropy-difference values.

Returns

DataFrame with entropy-difference values by sequence.

TraMineR Mapping

  • Equivalent TraMineR function: TraMineR internal seqientdiff().

Authors

Code and documentation: Yuqi Liang

See Also

References

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.