<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body class="" style="word-wrap:break-word">
<div style="font-family:'Calibri','sans-serif'">
<div dir="ltr">
<div dir="ltr"><br>
</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">
<div dir="ltr">Gesendet mit meinem HTC</div>
</div>
</div>
<br>
<div id="htc_header">----- Nachricht beantworten -----<br>
Von: "Schoffelen, J.M. (Jan Mathijs)" <jan.schoffelen@donders.ru.nl><br>
An: "FieldTrip discussion list" <fieldtrip@science.ru.nl><br>
Betreff: [FieldTrip] Granger analysis<br>
Datum: Sa., Aug. 12, 2017 21:42</div>
</div>
<br>
<div>Hi Matt,
<div class=""><br class="">
</div>
<div class="">I have never done this myself, but I think that in principle it should be possible to fit a set of models, and then compute the residuals’ variance ratio by hand.</div>
<div class="">In other words, assuming data1 and data2 to be variables that consist of a single channel:</div>
<div class=""><br class="">
</div>
<div class="">mvar1 = ft_mvaranalysis(cfg, data1);</div>
<div class="">mvar2 = ft_mvaranalysis(cfg, data2);</div>
<div class="">mvar12 = ft_mvaranalysis(cfg, ft_appenddata([],data1,data2));</div>
<div class=""><br class="">
</div>
<div class="">GC1to2 = log(mvar2.noisecov(1,1)./mvar12.noisecov(2,2));</div>
<div class="">GC2to1 = log(mvar1.noisecov(1,1)./mvar12.noisecov(1,1));</div>
<div class=""><br class="">
</div>
<div class="">Best wishes,</div>
<div class="">Jan-Mathijs</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">
<div class="" style="word-wrap:break-word">
<div class="" style="word-wrap:break-word">
<div class="" style="word-wrap:break-word">J.M.Schoffelen, MD PhD<br class="">
Senior Researcher, VIDI-fellow - PI, language in interaction<br class="">
Telephone: +31-24-3614793</div>
<div class="" style="word-wrap:break-word">Physical location: room 00.028</div>
<div class="" style="word-wrap:break-word">Donders Centre for Cognitive Neuroimaging, Nijmegen, The Netherlands<br class="">
<br class="">
<br class="">
</div>
</div>
</div>
</div>
</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 12 Aug 2017, at 00:05, MATTHEW I BANKS <<a href="mailto:mibanks@wisc.edu" class="">mibanks@wisc.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div id="divtagdefaultwrapper" dir="ltr" class="" style="font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; font-size:12pt; font-family:Calibri,Helvetica,sans-serif">
<div class="" style="margin-top:0px; margin-bottom:0px">Greetings. What is the easiest way to compute non-spectrally resolved Granger causality, i.e. log(var(e_x)/var(e_xy)), where e_x and e_xy are the AR model error terms?</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div class="" style="margin-top:0px; margin-bottom:0px">-Matt</div>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
<div id="Signature" class="">
<div id="divtagdefaultwrapper" class="" style="font-size:12pt; background-color:rgb(255,255,255); font-family:Calibri,Arial,Helvetica,sans-serif,EmojiFont,'Apple Color Emoji','Segoe UI Emoji',NotoColorEmoji,'Segoe UI Symbol','Android Emoji',EmojiSymbols">
<div class="" style="margin-top:0px; margin-bottom:0px"><span class="" style="color:rgb(33,33,33); font-size:15px">____________________________</span></div>
<div class="" style="margin-top:0px; margin-bottom:0px"><span id="ms-rterangepaste-start" class=""></span><span class="" style="color:rgb(33,33,33); font-size:15px">Matthew I. Banks, Ph.D.</span><br class="" style="color:rgb(33,33,33); font-size:15px">
<span class="" style="color:rgb(33,33,33); font-size:15px">Associate Professor</span><br class="" style="color:rgb(33,33,33); font-size:15px">
<span class="" style="color:rgb(33,33,33); font-size:15px">Department of Anesthesiology</span><br class="" style="color:rgb(33,33,33); font-size:15px">
<span class="" style="color:rgb(33,33,33); font-size:15px">University of Wisconsin</span><br class="" style="color:rgb(33,33,33); font-size:15px">
<span class="" style="color:rgb(33,33,33); font-size:15px">1300 University Avenue, Room 4605</span><br class="" style="color:rgb(33,33,33); font-size:15px">
<span class="" style="color:rgb(33,33,33); font-size:15px">Madison, WI 53706</span><br class="" style="color:rgb(33,33,33); font-size:15px">
<span class="" style="color:rgb(33,33,33); font-size:15px">office tel. </span><a href="tel:%28608%29261-1143" target="_blank" id="LPNoLP" class="" style="font-size:15px">(608)261-1143</a><br class="" style="color:rgb(33,33,33); font-size:15px">
<span class="" style="color:rgb(33,33,33); font-size:15px">lab tel. </span><a href="tel:%28608%29263-6662" target="_blank" id="LPNoLP" class="" style="font-size:15px">(608)263-6662</a><br class="" style="color:rgb(33,33,33); font-size:15px">
<span class="" style="color:rgb(33,33,33); font-size:15px">fax </span><a href="tel:%28608%29263-2592" target="_blank" id="LPNoLP" class="" style="font-size:15px">(608)263-2592</a><br class="" style="color:rgb(33,33,33); font-size:15px">
<a href="http://anesthesia.wisc.edu/index.php/Banks_Laboratory" target="_blank" id="LPNoLP" class="" style="font-size:15px">http://anesthesia.wisc.edu/index.php/Banks_Laboratory</a><br class="" style="color:rgb(33,33,33); font-size:15px">
<a href="http://ntp.neuroscience.wisc.edu/banks.htm" target="_blank" id="LPNoLP" class="" style="font-size:15px">http://ntp.neuroscience.wisc.edu/banks.htm</a><span id="ms-rterangepaste-end" class=""></span><br class="">
</div>
</div>
</div>
</div>
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; float:none; display:inline!important">_______________________________________________</span><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; float:none; display:inline!important">fieldtrip
 mailing list</span><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
<a href="mailto:fieldtrip@donders.ru.nl" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">fieldtrip@donders.ru.nl</a><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></div>
</blockquote>
</div>
<br class="">
</div>
<br class="">
<br class="">
<div class="">
<div class="" style="color:rgb(0,0,0); letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; word-wrap:break-word">
<div class="" style="color:rgb(0,0,0); letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; word-wrap:break-word">
<div class="" style="color:rgb(0,0,0); letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; word-wrap:break-word">
<br class="">
</div>
</div>
</div>
</div>
</div>
</body>
</html>