regression_path_duration_exclusive#

pymovements.measure.reading.regression_path_duration_exclusive(duration: str | Expr = 'duration', word_idx: str | Expr = 'word_idx', regression_path_word: str | Expr = 'regression_path_word') → Expr[source]#

Sum of the regressed-time fixation durations within the regression-path window (RPD_exc).

Same window as regression_path_duration_inclusive(), but excluding fixations on the word itself (i.e., time spent on regressed words only). Aggregate over regression_path_word groups.

Parameters:
  • duration (str | pl.Expr) – Column name or expression of the fixation duration. (default: 'duration')

  • word_idx (str | pl.Expr) – Column name or expression of the fixated word index. (default: 'word_idx')

  • regression_path_word (str | pl.Expr) – Column name or expression of the regression-path target word index. (default: 'regression_path_word')

Returns:

Aggregation expression producing the RPD_exc column.

Return type:

pl.Expr