Correct way to center the signal by channel and by trial/event #219
-
Hi, let me first thank you (again) for developing and maintaining the package, it is super helpful! I have an
I would like to center the signal by trial and by channel. I have tried using the
What would be the correct way to center the signal by channel and by trial? By correct I mean that the mean of the signal in each trial and each channel is effectively 0. Thank you for your help! Ladislas |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi! Thanks for the kind words! Yeah, good point. In any case, what you want to do (if I understood it right), it's relatively straight forward to do:
Best regards, |
Beta Was this translation helpful? Give feedback.
Hi! Thanks for the kind words!
Yeah, good point.
eeg_baseline
only baselines using the signal before the start of the trial (the time 0). That's how I've always done it and seen it. But I could makeeeg_baseline
more flexible. Could you open an issue and provide a reference on a paper where it's done the way you want it?In any case, what you want to do (if I understood it right), it's relatively straight forward to do:
across_ch
is like dplyr's across but by default across all the channels of the object, so for every channel in every segment, you take it and subtract the mean. That's what …