<div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif;color:#0000ff">Dear Andreas, </div><div class="gmail_default" style="font-family:georgia,serif;color:#0000ff"><br></div><div class="gmail_default" style="font-family:georgia,serif;color:#0000ff">thank you very much! This is really helpful :)</div><div class="gmail_default" style="font-family:georgia,serif;color:#0000ff"><br></div><div class="gmail_default" style="font-family:georgia,serif;color:#0000ff">I will apply the other filter setting and make sure I have two copies of the file!</div><div class="gmail_default" style="font-family:georgia,serif;color:#0000ff"><br></div><div class="gmail_default" style="font-family:georgia,serif;color:#0000ff">Best wishes,</div><div class="gmail_default" style="font-family:georgia,serif;color:#0000ff">Karolina</div><div class="gmail_default" style="font-family:georgia,serif;color:#0000ff"><br></div><div class="gmail_default" style="font-family:georgia,serif;color:#0000ff"><br></div><div class="gmail_default" style="font-family:georgia,serif;color:#0000ff"><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Pozdrawiam serdecznie<div><span style="color:rgb(0,0,0)">dr Karolina Broś</span><br></div><div><font color="#000000"><br></font></div><div><span style="color:rgb(153,153,153)"></span></div><div><span style="color:rgb(153,153,153)">Institute of Applied Linguistics</span><br></div><div><font color="#999999">University of Warsaw<br>ul. Dobra 55<br>00-312 Warszawa<br></font></div><div><font color="#999999"><u><a href="http://www.ils.uw.edu.pl" target="_blank">www.ils.uw.edu.pl</a></u><br><br></font><span><font color="#000000"><u><a href="http://www.karolinabros.eu" target="_blank">www.karolinabros.eu</a></u></font></span></div></div></div></div></div></div>
<br><div class="gmail_quote">2018-06-15 12:32 GMT+02:00 Andreas Widmann <span dir="ltr"><<a href="mailto:widmann@uni-leipzig.de" target="_blank">widmann@uni-leipzig.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Karolina,<br>
<span class=""><br>
> Am I right to assume that to get a 1Hz high-pass filter I should enter a 2Hz edge?<br>
> <br>
> EEG = pop_eegfiltnew(EEG, [],2,[],true,[],1);<br>
</span>Yes,  with default filter order this will give you a 1 Hz cutoff. 2 Hz passband edge is, however, rather extreme; so this is not necessarily what I would recommend for your purpose. You can have a 1 Hz cutoff highpass combined with a narrower transition band if you manually set filter order. For example with 1 Hz transition band width, your stopband edge would be at 0.5 Hz and the passband edge at 1.5 Hz. You compute filter order for this filter as<br>
<br>
df = 1; % requested transition band width<br>
fs = 500; % sampling frequency<br>
order = 3.3 / (df / fs) % round to next even integer, here 1650<br>
<br>
EEG = pop_eegfiltnew(EEG, [],1.5,1650,true,[],1);<br>
<br>
will then give you a 1 Hz highpass with 1.5 Hz passband edge. See here if you want to read more on the underlying concepts:<br>
<a href="http://home.uni-leipzig.de/biocog/eprints/widmann_a2015jneuroscimeth250_34.pdf" rel="noreferrer" target="_blank">http://home.uni-leipzig.de/<wbr>biocog/eprints/widmann_<wbr>a2015jneuroscimeth250_34.pdf</a><br>
<span class=""><br>
> Also, only theoretically, is it possible to high-pass filter data twice? Would that distort the data and disable ICA?<br>
> <br>
> Let's say we have a dataset filtered with a cutoff frequency of 0.1Hz but then we want to run ICA at 1Hz because it's the recommended threshold... Is it possible to take the 0.1 dataset and apply a more robust filter to it?<br>
</span>Technically this is possible. The 0-0.2 Hz band will then be attenuated more strongly. Given the 1.5 Hz passband edge filter I suggested, the differences will be minimal as this band is completely in the stopband of the new filter. Given your 2 Hz passband edge filter there will be small differences which I would not expect to be problematic. However, in general, one should also consider that the convoluted interval is longer (the sum of both filter orders) possibly spreading potential artifacts unnecessarily wide. As computation time for the higher highpass cutoff is considerably shorter due to lower filter order, personally I usually prefer to have to two parallel (on separate copies of the data) rather than consecutive filtering steps.<br>
<br>
Hope this helps,<br>
Andreas<br>
<div><div class="h5"><br>
> Am 14.06.2018 um 17:41 schrieb Karolina Broś <<a href="mailto:k.bros@uw.edu.pl">k.bros@uw.edu.pl</a>>:<br>
> <br>
> Dear all, <br>
> <br>
> I am preprocessing my data and I want to run ICA for artifact rejection on 1Hz-filtered data and then apply weights to 0.1Hz-filtered data... <br>
> <br>
> From what I understand, the EEGLAB eegfiltnew function uses passband edges which do not exactly correspond to cutoff frequencies.<br>
> <br>
> Am I right to assume that to get a 1Hz high-pass filter I should enter a 2Hz edge?<br>
> <br>
> EEG = pop_eegfiltnew(EEG, [],2,[],true,[],1);<br>
> <br>
> and to get 0.1 I should enter 0.2Hz?<br>
> <br>
> EEG = pop_eegfiltnew(EEG, [],0.2,[],true,[],1);<br>
> <br>
> <br>
> Also, only theoretically, is it possible to high-pass filter data twice? Would that distort the data and disable ICA?<br>
> <br>
> Let's say we have a dataset filtered with a cutoff frequency of 0.1Hz but then we want to run ICA at 1Hz because it's the recommended threshold... Is it possible to take the 0.1 dataset and apply a more robust filter to it?<br>
> <br>
> I would really appreciate your feedback!<br>
> <br>
> Karolina<br>
> <br>
> <br>
> <br>
> Institute of Applied Linguistics<br>
> University of Warsaw<br>
> ul. Dobra 55<br>
> 00-312 Warszawa<br>
> <a href="http://www.ils.uw.edu.pl" rel="noreferrer" target="_blank">www.ils.uw.edu.pl</a><br>
> <br>
> <a href="http://www.karolinabros.eu" rel="noreferrer" target="_blank">www.karolinabros.eu</a><br>
</div></div>> ______________________________<wbr>_________________<br>
> Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" target="_blank">http://sccn.ucsd.edu/eeglab/<wbr>eeglabmail.html</a><br>
> To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.<wbr>ucsd.edu</a><br>
> For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.<wbr>edu</a><br>
<br>
</blockquote></div><br></div>