right_bounded_reading_time#

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

Sum of fixation durations on a word before any word to its right is visited (RBRT).

Aggregate over regression_path_word groups (see regression_path_word()).

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 RBRT column.

Return type:

pl.Expr