<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi EEGlablist,<br>
I had the same problem and found no other solution than modifying
the function statcondfieldtrip directly. As this is a low-level
function you need to prepare your input a little. It is sometime ago
that I did the simple modifications (but it was in v11.x), therefore
I'm not sure a) if it still works b) if these were the only
modifications.<br>
what I think I did to get the fieldtripstat:<br>
Simply add to line 224 (after or before eeglab saves the relevant
stats.X values,e.g. pvals = stats.prob etc.):<br>
<br>
fullStat = stat;<br>
<br>
and put fullStat in the output to the function.<br>
<br>
function [ori_vals, df, pvals,fullStat ] = statcondfieldtrip( data,
varargin );<br>
<br>
As I wanted paired testing I used the following command:<br>
<br>
[stats,df,pvals,ftStat] =
statcondfieldtrip(dataCell,'paired','on','method','montecarlo','correctm','cluster','naccu',1000);<br>
where dataCell{1} = (ElecxTimesxTrials), dataCell{2} =
(ElecxTimesxTrials)<br>
<br>
<br>
But if you only need the t/F-values or p-values you can use this
function directly without modifications (they are saved in
stats/pvals).<br>
<br>
<br>
If you have trouble using the functions you are welcome to ask me
anytime.<br>
<br>
Best,<br>
Benedikt <br>
<br>
<br>
PS: I just noticed, that you need to put the fullStat = stat in
other places as well, if you test more than one electrode at a time
(two-way Anova) because there are "returns" in the code.<br>
<br>
<br>
<div class="moz-cite-prefix">Am 26.06.2013 05:44, schrieb Makoto
Miyakoshi:<br>
</div>
<blockquote
cite="mid:CAEqC+SU_eccS7pK7V211abWq7+kBfQ=Nnqp5Zu7qDXPQ+VeK9g@mail.gmail.com"
type="cite">
<div dir="ltr">Dear Mikolaj and Felix,
<div><br>
</div>
<div>I haven't used the function, so I don't know. I believe the
ERP plots are generated on the fly and the results are not
saved. If you want to access the output, you have to identify
which function generates the plots.</div>
<div><br>
</div>
<div>Makoto</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2013/6/23 Mikołaj Magnuski <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:imponderabilion@gmail.com" target="_blank">imponderabilion@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Dear Felix,
<div><br>
</div>
<div>I had a similar problem previously and could not
find the cluster<br>
statistics data anywhere in EEGlab structures (perhaps
I was<br>
not looking carefully enough - Makoto, is FieldTrip
output saved<br>
anywhere in the workspace when doing cluster
statistics from<br>
EEGlab?).<br>
<br>
When doing cluster statistics EEGlab uses another
toolbox -<br>
FieldTrip. If you are unable to dig up the output of
this procedure<br>
anywhere in EEGlab I suggest you should perform it in
FieldTrip<br>
directly. It's a little bit harder than EEGlab because
you don't have<br>
a GUI in FieldTrip, but all the functions are
described very well and<br>
some really helpful tutorials are present on the
FieldTrip web page<br>
(the page is here: <a moz-do-not-send="true"
href="http://fieldtrip.fcdonders.nl/"
target="_blank">http://fieldtrip.fcdonders.nl/</a>).<br>
There is a function called eeglab2fieldtrip that can
transform your<br>
EEG structure from EEGlab to FieldTrip style. All the
following<br>
steps can be done according to:<br>
<a moz-do-not-send="true"
href="http://fieldtrip.fcdonders.nl/tutorial/cluster_permutation_freq"
target="_blank">http://fieldtrip.fcdonders.nl/tutorial/cluster_permutation_freq</a><br>
<br>
I have some functions that could help you along the
way<br>
(or even automatise the whole procedure), you can con-<br>
tact me if you decide to do cluster statistics
directly in <br>
FieldTrip. <br>
Nevertheless, the FieldTrip output should be present
somewhere<br>
in the workspace or at least be possible to catch in a
script (if not<br>
it is still possible to modify one of the EEGlab
functions to return or <br>
eval in your base workspace the information about
cluster statistics).<br>
<br>
Mikolaj</div>
</div>
<div class="gmail_extra"><br clear="all">
<div>Pozdrawiam,<br>
Mikołaj Magnuski</div>
<br>
<br>
<div class="gmail_quote">2013/6/19 Felix Ball <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:Felix.Ball@hu-berlin.de"
target="_blank">Felix.Ball@hu-berlin.de</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div class="h5">
Dear list,<br>
<br>
Thank you in advance for your help. I currently
try to use the STUDY function and especially the
non-parametric test (Maris and Oostenveld
cluster statistic). I have an experiment with
two conditions and n subjects. What I want to
know is at which time points and at which
electrodes the two conditions differ from each
other. The difference between conditions is
investigated on the grand average level.<br>
I read about a method introduced by Maris and
Oostenveld and it seems to be perfect for my
needs and it is already implemented in EEGLab.
What I get with EEGLab (see matlab code) is a
plot (see figure C1vsC2) with different time
intervals marked in grey for each electrode.
These grey shaded areas are, as far as I
understood, significant differences between
conditions. Furthermore, they are in a time
range where I expected to find a significant
difference between conditions. Now I have 2
questions:<br>
<br>
1) I want to access the statistics that are the
basis of this plot. Does someone know where I
can find them or do I have bugs in my code,
preventing me from accessing the stats
variables? I was not able to find any variable
in my workspace resembling the results shown in
figure C1vsC2.<br>
<br>
2) The result I expected (after reading the
Maris and Oostenveld paper), slightly differs
from the result I receive. I expected only one
cluster of neighbor electrodes and one
continuous time interval to be shaded in grey in
the plot. This cluster- time interval
combination would be the maximum effect between
conditions. However, looking at figure C1vsC2, I
see that neighbor electrodes have a grey shaded
areas, but these areas are not necessarily
continuous and are not equal for all electrodes.
If I just look at one electrode, e.g. FC3 (see
appendix), I see that the time range is
sometimes interrupted. How do I know when
conditions start and stop to be significantly
different, if there is not only one time
interval of significant difference? I need to
know the time range because I want to pick the
mean amplitude (in the time range) for a
regression analysis.<br>
<br>
Thank you for your help and kind regards. felix<br>
<br>
<br>
</div>
</div>
_______________________________________________<br>
Eeglablist page: <a moz-do-not-send="true"
href="http://sccn.ucsd.edu/eeglab/eeglabmail.html"
target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a
moz-do-not-send="true"
href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu"
target="_blank">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>
For digest mode, send an email with the subject "set
digest mime" to <a moz-do-not-send="true"
href="mailto:eeglablist-request@sccn.ucsd.edu"
target="_blank">eeglablist-request@sccn.ucsd.edu</a><br>
</blockquote>
</div>
<br>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr">Makoto Miyakoshi<br>
Swartz Center for Computational Neuroscience<br>
Institute for Neural Computation, University of California
San Diego<br>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Eeglablist page: <a class="moz-txt-link-freetext" href="http://sccn.ucsd.edu/eeglab/eeglabmail.html">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a>
To unsubscribe, send an empty email to <a class="moz-txt-link-abbreviated" href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.ucsd.edu</a>
For digest mode, send an email with the subject "set digest mime" to <a class="moz-txt-link-abbreviated" href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.edu</a></pre>
</blockquote>
<br>
</body>
</html>