<div dir="ltr">Dear Nenad,<div><br></div><div>One difference is that 'data' need not be the same 'data' that was used to create 'comp'.</div><div>For example, you can have 'data' which is the original/raw data, then do some preprocessing on it to create 'data1'.  </div><div>Then call comp=ft_componentanalysis(cfg,data1).   </div><div>Then you can decide which components to reject from comp but apply this rejection to 'data' rather than 'data1'.  </div><div>(e.g. <a href="http://mailman.science.ru.nl/pipermail/fieldtrip/2013-October/007118.html">http://mailman.science.ru.nl/pipermail/fieldtrip/2013-October/007118.html</a> or <a href="http://mailman.science.ru.nl/pipermail/fieldtrip/2014-February/007608.html">http://mailman.science.ru.nl/pipermail/fieldtrip/2014-February/007608.html</a>) </div><div><br></div><div>In your case of calling PCA for dimensionality reduction, let's say for example your 'data' has 100 channels and you set PCA to 50.  Then 'comp' will have 50 components (rank 50).  Let's say you want to reject 2 components.  Then the output of ft_rejectcomponent(cfg,comp) will end up in channel space (100 channels) but of only rank 48.   However, the output of ft_rejectcomponent(cfg,comp,data) will be in channel space (100 channels) but of rank 98.</div><div><br>There are additional differences, such as mentioned in the 'help documentation' of ft_rejectcomponent, namely "Please use this option of including data as input, if you wish to use the output data.grad in further computation, for example for leadfield computation."   This is for the data.grad.tra to be updated appropriately for leadfields.<br><br>Hope that helps, and perhaps there should be a FAQ on the wiki for this.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Regards,</div><div class="gmail_extra">Johanna</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">2014-12-23 15:25 GMT+00:00 Nenad Polomac <span dir="ltr"><<a href="mailto:polomacnenad@gmail.com" target="_blank">polomacnenad@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Dear Fieldtrip users,<br><br></div>I would like to ask for one explanation. Could anyone in more detail explain the difference between ft_rejectcomponent(cfg, comp) and  ft_rejectcomponent(cfg, comp, data)? I am not sure which one I should use. I have read available information about that and tried out both methods. I understand that data input will lead to back-projection of the data into the original subspace. However I am still not sure which one I should use. Furthermore, in the ICA calculation I have used cfg.runica.pca for data dimensionality reduction. <br><br></div>Any clarification of this issue would be greatly appreciated!<br><br></div>Thank you in advance!<br><br></div>All the best and happy holidays,<br><br></div>Nenad<br></div>
<br>_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br></blockquote></div><br></div></div>