trftools.pipeline.TRFExperiment.add_predictor

TRFExperiment.add_predictor(ds, code, filter_x=False, y=None)

Add predictor variable to a Dataset

Parameters:
  • ds (Dataset) – Dataset with the dependent measure.

  • code (str) – Predictor to add. Suffix demarcated by $ for shuffling.

  • filter_x (Literal[True, False, 'continuous']) – Filter predictors with the same filter as the M/EEG data. filter_x=True to filter all predictors; filter_x=False filter_x='continuous' to filter time-continuous predictors, but not discrete predictors (see FilePredictor sampling parameter).

  • y (UTS | NDVar | str) – UTS or NDVar to match time axis to.