Skip to content

get_insecurity_index()

Computes insecurity index (type-2 precarity formulation).

Function

python
from sequenzo import get_insecurity_index
result = get_insecurity_index(seqdata, method="RANK", pow=1.0, bound=False)

Parameters

  • seqdata: SequenceData object.
  • method: correction method (default RANK).
  • pow: spell integration exponent.
  • spow: exponent for first-spell integration (defaults to pow).
  • bound: whether to clamp by sequence-specific min/max state cost.
  • optional: correction, state_order, state_equiv, stprec, with_missing.

Returns

DataFrame with Insec values per sequence.

TraMineR Mapping

  • Equivalent TraMineR function: seqinsecurity.

Author

Code and documentation: Yuqi Liang

References

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