<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body 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
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>
</body>
</html>