regression_path_duration_inclusive#

pymovements.measure.reading.regression_path_duration_inclusive(duration: str | Expr = 'duration') → Expr[source]#

Sum of all fixation durations within the regression-path window of a word (RPD_inc).

The window spans from first entering the word until the first fixation to its right, including fixations on the word itself. Aggregate over regression_path_word groups instead of word_idx groups (see regression_path_word()).

Parameters:

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

Returns:

Aggregation expression producing the RPD_inc column.

Return type:

pl.Expr