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=Trueto filter all predictors;filter_x=Falsefilter_x='continuous'to filter time-continuous predictors, but not discrete predictors (seeFilePredictorsamplingparameter).