<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi JM!<br>
haha, sounds good, I'll contact you :)<br>
Cheers,<br>
Ingrid<br>
<br>
<div class="moz-cite-prefix">On 7/1/2012 11:53 PM, jan-mathijs
schoffelen wrote:<br>
</div>
<blockquote
cite="mid:1AA66D8B-3685-4A8F-AED3-A1FF8C7A8D21@donders.ru.nl"
type="cite">Hi Ingrid,
<div><br>
</div>
<div>This calls for a statfun_corr or even a statfun_glm! It so
happens that I have some of these sitting on my hard drive. As
you know I am fond of beer, chocolate and co-authorships, so I
am sure we can strike a deal. I have not yet had the opportunity
to contribute these statfuns to FieldTrip, but now I sense a
win-win-win situation: win 1 is for me
(beer/chocolate/co-authorships/etc), win 2 is for you (you can
compute your statistic of interest) and win 3 for the community
(where you test the code, write documentation on the wiki
etcetc). How does that sound for a plan?</div>
<div><br>
</div>
<div>Cheers,</div>
<div><br>
</div>
<div>JM</div>
<div><br>
<div>
<div>On Jul 1, 2012, at 10:15 PM, Ingrid Nieuwenhuis wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<div bgcolor="#FFFFFF" text="#000000"> Hi FTers,<br>
<br>
I'd like to do two sorts of correlation calculations, and
was wondering if there's any easy way to do this within
FieldTrip. <br>
<br>
1) I'd like to calculate the correlation between
performance over trials and power within a specific
frequency over trials. So I have the performance measure
per trial, and my chan*freq measure after freqanalysis. So
for each channel I have a series of power values (trials)
and I have a series of performance measures (per trial),
and now like to know (first within, and then over
subjects) which channel's frequency power follows
(correlates) with the performance.<br>
<br>
From the <a moz-do-not-send="true"
href="http://fieldtrip.fcdonders.nl/walkthrough#correlation">walkthrough</a>
I understand I can give in these performance measures
through the design (<g clip-path="url(#SVGID_4_)"
style="color: rgb(0, 0, 0); font-family: 'Times New
Roman'; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: 2; text-align:
-webkit-auto; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; font-size: medium; "><g
clip-path="url(#SVGID_6_)"><text transform="matrix(1 0
0 1 7.2061 59.7646)"><tspan x="0" y="0"
fill="#010101" font-family="'Calibri-Italic'"
font-size="11.04">c</tspan><tspan x="4.571" y="0"
fill="#010101" font-family="'Calibri-Italic'"
font-size="11.04">f</tspan><tspan x="7.94" y="0"
fill="#010101" font-family="'Calibri-Italic'"
font-size="11.04">g</tspan><tspan x="13.693" y="0"
fill="#010101" font-family="'Calibri-Italic'"
font-size="11.04">.</tspan><tspan x="16.569" y="0"
fill="#010101" font-family="'Calibri-Italic'"
font-size="11.04">d</tspan><tspan x="22.322" y="0"
fill="#010101" font-family="'Calibri-Italic'"
font-size="11.04">e</tspan><tspan x="27.362" y="0"
fill="#010101" font-family="'Calibri-Italic'"
font-size="11.04">s</tspan><tspan x="31.681" y="0"
fill="#010101" font-family="'Calibri-Italic'"
font-size="11.04">i</tspan><tspan x="34.314" y="0"
fill="#010101" font-family="'Calibri-Italic'"
font-size="11.04">g</tspan><tspan x="39.835" y="0"
fill="#010101" font-family="'Calibri-Italic'"
font-size="11.04">n</tspan><tspan x="45.589" y="0"
fill="#010101" font-family="'Calibri-Italic'"
font-size="11.04"><span
class="Apple-converted-space"> </span></tspan><tspan
x="47.997" y="0" fill="#010101"
font-family="'Calibri-Italic'" font-size="11.04">=</tspan><tspan
x="53.506" y="0" fill="#010101"
font-family="'Calibri-Italic'" font-size="11.04"><span
class="Apple-converted-space"> </span></tspan><tspan
x="55.914" y="0" fill="#010101"
font-family="'Calibri-Italic'" font-size="11.04">[</tspan><tspan
x="59.277" y="0" fill="#010101"
font-family="'Calibri-Italic'" font-size="11.04"></tspan></text></g></g><g
clip-path="url(#SVGID_4_)" style="color: rgb(0, 0, 0);
font-family: 'Times New Roman'; font-style: normal;
font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal; orphans: 2;
text-align: -webkit-auto; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; font-size: medium; "><defs><rect
id="SVGID_7_" x="-4.56" y="49.44" width="261.601"
height="72.48"></rect></defs><clippath id="SVGID_8_"><use
xlink:href="#SVGID_7_" overflow="visible"></use></clippath><g
clip-path="url(#SVGID_8_)"><text transform="matrix(1 0
0 1 68.8857 59.7646)"><tspan x="0" y="0"
fill="#010101" font-family="'Calibri-Italic'"
font-size="11.04">0</tspan><tspan x="5.529" y="0"
fill="#010101" font-family="'Calibri-Italic'"
font-size="11.04">.</tspan><tspan x="8.404" y="0"
fill="#010101" font-family="'Calibri-Italic'"
font-size="11.04">1</tspan><tspan x="13.934" y="0"
fill="#010101" font-family="'Calibri-Italic'"
font-size="11.04"><span
class="Apple-converted-space"> </span></tspan><tspan
x="16.341" y="0" fill="#010101"
font-family="'Calibri-Italic'" font-size="11.04">0</tspan><tspan
x="21.871" y="0" fill="#010101"
font-family="'Calibri-Italic'" font-size="11.04">.</tspan><tspan
x="24.746" y="0" fill="#010101"
font-family="'Calibri-Italic'" font-size="11.04">2</tspan><tspan
x="30.275" y="0" fill="#010101"
font-family="'Calibri-Italic'" font-size="11.04"><span
class="Apple-converted-space"> </span></tspan><tspan
x="32.683" y="0" fill="#010101"
font-family="'Calibri-Italic'" font-size="11.04">0</tspan><tspan
x="38.212" y="0" fill="#010101"
font-family="'Calibri-Italic'" font-size="11.04">.</tspan><tspan
x="41.087" y="0" fill="#010101"
font-family="'Calibri-Italic'" font-size="11.04">3</tspan><tspan
x="46.616" y="0" fill="#010101"
font-family="'Calibri-Italic'" font-size="11.04"><span
class="Apple-converted-space"> </span></tspan><tspan
x="49.024" y="0" fill="#010101"
font-family="'Calibri-Italic'" font-size="11.04">0</tspan><tspan
x="54.553" y="0" fill="#010101"
font-family="'Calibri-Italic'" font-size="11.04">.</tspan><tspan
x="57.428" y="0" fill="#010101"
font-family="'Calibri-Italic'" font-size="11.04">4</tspan><tspan
x="63.178" y="0" fill="#010101"
font-family="'Calibri-Italic'" font-size="11.04"><span
class="Apple-converted-space"> </span></tspan><tspan
x="65.586" y="0" fill="#010101"
font-family="'Calibri-Italic'" font-size="11.04">0</tspan><tspan
x="71.116" y="0" fill="#010101"
font-family="'Calibri-Italic'" font-size="11.04">.</tspan><tspan
x="73.991" y="0" fill="#010101"
font-family="'Calibri-Italic'" font-size="11.04">5</tspan><tspan
x="79.52" y="0" fill="#010101"
font-family="'Calibri-Italic'" font-size="11.04"><span
class="Apple-converted-space"> </span></tspan><tspan
x="81.926" y="0" fill="#010101"
font-family="'Calibri-Italic'" font-size="11.04">0</tspan><tspan
x="87.456" y="0" fill="#010101"
font-family="'Calibri-Italic'" font-size="11.04">.</tspan><tspan
x="90.331" y="0" fill="#010101"
font-family="'Calibri-Italic'" font-size="11.04">4</tspan><tspan
x="95.86" y="0" fill="#010101"
font-family="'Calibri-Italic'" font-size="11.04"><span
class="Apple-converted-space"> </span></tspan><tspan
x="98.5" y="0" fill="#010101"
font-family="'Calibri-Italic'" font-size="11.04">0</tspan><tspan
x="104.03" y="0" fill="#010101"
font-family="'Calibri-Italic'" font-size="11.04">.</tspan><tspan
x="106.905" y="0" fill="#010101"
font-family="'Calibri-Italic'" font-size="11.04">3</tspan><tspan
x="112.434" y="0" fill="#010101"
font-family="'Calibri-Italic'" font-size="11.04"><span
class="Apple-converted-space"> </span></tspan><tspan
x="114.84" y="0" fill="#010101"
font-family="'Calibri-Italic'" font-size="11.04">0</tspan><tspan
x="120.37" y="0" fill="#010101"
font-family="'Calibri-Italic'" font-size="11.04">.</tspan><tspan
x="123.247" y="0" fill="#010101"
font-family="'Calibri-Italic'" font-size="11.04">1</tspan><tspan
x="128.776" y="0" fill="#010101"
font-family="'Calibri-Italic'" font-size="11.04"><span
class="Apple-converted-space"> </span></tspan><tspan
x="131.182" y="0" fill="#010101"
font-family="'Calibri-Italic'" font-size="11.04">0</tspan><tspan
x="136.711" y="0" fill="#010101"
font-family="'Calibri-Italic'" font-size="11.04">.</tspan><tspan
x="139.586" y="0" fill="#010101"
font-family="'Calibri-Italic'" font-size="11.04">2</tspan><tspan
x="145.116" y="0" fill="#010101"
font-family="'Calibri-Italic'" font-size="11.04">]</tspan><tspan
x="148.479" y="0" fill="#010101"
font-family="'Calibri-Italic'" font-size="11.04">;</tspan></text></g></g><g
clip-path="url(#SVGID_4_)" style="color: rgb(0, 0, 0);
font-family: 'Times New Roman'; font-style: normal;
font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal; orphans: 2;
text-align: -webkit-auto; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; font-size: medium; "><defs><rect
id="SVGID_9_" x="-4.56" y="49.44" width="261.601"
height="72.48"></rect></defs><clippath
id="SVGID_10_"><use xlink:href="#SVGID_9_"
overflow="visible"></use></clippath><g
clip-path="url(#SVGID_10_)"><text transform="matrix(1
0 0 1 220.3237 59.7646)" fill="#010101"
font-family="'Calibri-Italic'" font-size="11.04"></text></g></g><g
clip-path="url(#SVGID_4_)" style="color: rgb(0, 0, 0);
font-family: 'Times New Roman'; font-style: normal;
font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal; orphans: 2;
text-align: -webkit-auto; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; font-size: medium; "><defs><rect
id="SVGID_11_" x="-4.56" y="49.44" width="261.601"
height="72.48"></rect></defs><clippath
id="SVGID_12_"><use xlink:href="#SVGID_11_"
overflow="visible"></use></clippath><g
clip-path="url(#SVGID_12_)"><text transform="matrix(1
0 0 1 7.2061 73.2021)"><tspan x="0" y="0"
fill="#010101" font-family="'Calibri-Italic'"
font-size="11.04"> c</tspan><tspan x="4.571" y="0"
fill="#010101" font-family="'Calibri-Italic'"
font-size="11.04">f</tspan><tspan x="7.94" y="0"
fill="#010101" font-family="'Calibri-Italic'"
font-size="11.04">g</tspan><tspan x="13.693" y="0"
fill="#010101" font-family="'Calibri-Italic'"
font-size="11.04">.</tspan><tspan x="16.569" y="0"
fill="#010101" font-family="'Calibri-Italic'"
font-size="11.04">i</tspan></text></g></g><g
clip-path="url(#SVGID_4_)" style="color: rgb(0, 0, 0);
font-family: 'Times New Roman'; font-style: normal;
font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal; orphans: 2;
text-align: -webkit-auto; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; font-size: medium; "><defs><rect
id="SVGID_13_" x="-4.56" y="49.44" width="261.601"
height="72.48"></rect></defs><clippath
id="SVGID_14_"><use xlink:href="#SVGID_13_"
overflow="visible"></use></clippath><g
clip-path="url(#SVGID_14_)"><text transform="matrix(1
0 0 1 26.1592 73.2021)"><tspan x="0" y="0"
fill="#010101" font-family="'Calibri-Italic'"
font-size="11.04">v</tspan><tspan x="5.032" y="0"
fill="#010101" font-family="'Calibri-Italic'"
font-size="11.04">a</tspan><tspan x="10.554" y="0"
fill="#010101" font-family="'Calibri-Italic'"
font-size="11.04">r</tspan><tspan x="14.393" y="0"
fill="#010101" font-family="'Calibri-Italic'"
font-size="11.04"></tspan></text></g></g><g
clip-path="url(#SVGID_4_)" style="color: rgb(0, 0, 0);
font-family: 'Times New Roman'; font-style: normal;
font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal; orphans: 2;
text-align: -webkit-auto; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; font-size: medium; "><defs><rect
id="SVGID_15_" x="-4.56" y="49.44" width="261.601"
height="72.48"></rect></defs><clippath
id="SVGID_16_"><use xlink:href="#SVGID_15_"
overflow="visible"></use></clippath><g
clip-path="url(#SVGID_16_)"><text transform="matrix(1
0 0 1 42.9639 73.2021)" fill="#010101"
font-family="'Calibri-Italic'" font-size="11.04"></text></g></g><g
clip-path="url(#SVGID_4_)" style="color: rgb(0, 0, 0);
font-family: 'Times New Roman'; font-style: normal;
font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal; orphans: 2;
text-align: -webkit-auto; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; font-size: medium; "><defs><rect
id="SVGID_17_" x="-4.56" y="49.44" width="261.601"
height="72.48"></rect></defs><clippath
id="SVGID_18_"><use xlink:href="#SVGID_17_"
overflow="visible"></use></clippath><g
clip-path="url(#SVGID_18_)"><text transform="matrix(1
0 0 1 43.2061 73.2021)"><tspan x="0" y="0"
fill="#010101" font-family="'Calibri-Italic'"
font-size="11.04">=</tspan><tspan x="5.509" y="0"
fill="#010101" font-family="'Calibri-Italic'"
font-size="11.04"><span
class="Apple-converted-space"> </span></tspan><tspan
x="7.917" y="0" fill="#010101"
font-family="'Calibri-Italic'" font-size="11.04">1</tspan><tspan
x="13.446" y="0" fill="#010101"
font-family="'Calibri-Italic'" font-size="11.04">;),
but which method to use for ft_freqstatistics? I
don't see statistics = 'correlation' or 'pearson'
or 'spearman' in method = 'analytic. Also how to
make the design to correlate over trials?<br>
<br>
2) I'd like to calculate the correlation between
the score on repeated questionnaire over
participants with power within a frequency. So I
have several power values per participant for each
channel, and the repeated scores on the
questionnaire for each participant. And now I'd
like to calculate a value per channel reflecting
the correlation over the repeats of the
questionnaire and over participants. <br>
<br>
Any idea on FieldTrip settings? Both in general,
is there a correlation statistics implemented, and
more specifically for my question, how would I
make the appropriate designs?<br>
<br>
Thanks so much!<br>
Ingrid<br>
</tspan></text></g></g>
<pre class="moz-signature" cols="72">--
Ingrid Nieuwenhuis PhD
Postdoctoral Fellow
Sleep and Neuroimaging Laboratory
Department of Psychology
University of California, Berkeley
California 94720-1650
Tolman Hall, room 5305</pre>
</div>
_______________________________________________<br>
fieldtrip mailing list<br>
<a moz-do-not-send="true"
href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
<a class="moz-txt-link-freetext" href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></blockquote>
</div>
<br>
<div>
<span class="Apple-style-span" style="border-collapse:
separate; color: rgb(0, 0, 0); font-family: Helvetica;
font-style: normal; font-variant: normal; font-weight:
normal; letter-spacing: normal; line-height: normal;
orphans: 2; text-align: -webkit-auto; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; -webkit-border-horizontal-spacing: 0px;
-webkit-border-vertical-spacing: 0px;
-webkit-text-decorations-in-effect: none;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width:
0px; font-size: medium; "><span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0);
font-family: Helvetica; font-style: normal; font-variant:
normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: 2; text-align: -webkit-auto;
text-indent: 0px; text-transform: none; white-space:
normal; widows: 2; word-spacing: 0px;
-webkit-border-horizontal-spacing: 0px;
-webkit-border-vertical-spacing: 0px;
-webkit-text-decorations-in-effect: none;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width:
0px; font-size: medium; ">
<div style="word-wrap: break-word; -webkit-nbsp-mode:
space; -webkit-line-break: after-white-space; "><span
class="Apple-style-span" style="border-collapse:
separate; color: rgb(0, 0, 0); font-family: Helvetica;
font-style: normal; font-variant: normal; font-weight:
normal; letter-spacing: normal; line-height: normal;
orphans: 2; text-align: -webkit-auto; text-indent:
0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px;
-webkit-border-horizontal-spacing: 0px;
-webkit-border-vertical-spacing: 0px;
-webkit-text-decorations-in-effect: none;
-webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; font-size: medium; ">
<div style="word-wrap: break-word; -webkit-nbsp-mode:
space; -webkit-line-break: after-white-space; "><span
class="Apple-style-span" style="border-collapse:
separate; color: rgb(0, 0, 0); font-family:
Helvetica; font-style: normal; font-variant:
normal; font-weight: normal; letter-spacing:
normal; line-height: normal; orphans: 2;
text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-border-horizontal-spacing: 0px;
-webkit-border-vertical-spacing: 0px;
-webkit-text-decorations-in-effect: none;
-webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; font-size: medium;
">
<div style="word-wrap: break-word;
-webkit-nbsp-mode: space; -webkit-line-break:
after-white-space; "><span
class="Apple-style-span"
style="border-collapse: separate; color:
rgb(0, 0, 0); font-family: Helvetica;
font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: 2; text-indent:
0px; text-transform: none; white-space:
normal; widows: 2; word-spacing: 0px;
-webkit-border-horizontal-spacing: 0px;
-webkit-border-vertical-spacing: 0px;
-webkit-text-decorations-in-effect: none;
-webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; font-size:
medium; ">
<div style="word-wrap: break-word;
-webkit-nbsp-mode: space;
-webkit-line-break: after-white-space; "><span
class="Apple-style-span"
style="border-collapse: separate; color:
rgb(0, 0, 0); font-family: Helvetica;
font-size: medium; font-style: normal;
font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height:
normal; orphans: 2; text-indent: 0px;
text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px;
-webkit-border-horizontal-spacing: 0px;
-webkit-border-vertical-spacing: 0px;
-webkit-text-decorations-in-effect: none;
-webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; ">
<div style="word-wrap: break-word;
-webkit-nbsp-mode: space;
-webkit-line-break: after-white-space; ">
<div>Jan-Mathijs Schoffelen, MD PhD </div>
<div><br>
</div>
<div>Donders Institute for Brain,
Cognition and Behaviour, <br>
Centre for Cognitive Neuroimaging,<br>
Radboud University Nijmegen, The
Netherlands</div>
<div><br>
</div>
<div>Max Planck Institute for
Psycholinguistics,</div>
<div>Nijmegen, The Netherlands</div>
<div><br>
</div>
<div><a moz-do-not-send="true"
href="mailto:J.Schoffelen@donders.ru.nl">J.Schoffelen@donders.ru.nl</a></div>
<div>Telephone: +31-24-3614793</div>
</div>
</span></div>
</span></div>
</span></div>
</span></div>
</span></span>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
fieldtrip mailing list
<a class="moz-txt-link-abbreviated" href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a>
<a class="moz-txt-link-freetext" href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Ingrid Nieuwenhuis PhD
Postdoctoral Fellow
Sleep and Neuroimaging Laboratory
Department of Psychology
University of California, Berkeley
California 94720-1650
Tolman Hall, room 5305</pre>
<br>
<br>
</body>
</html>