<div dir="ltr"><div>Dear FieldTrip Community,</div><div><br></div><div>I have a question about ft_connectivityanalysis using method granger with input freq data:  how do I specify the time lag? If no time lag is specified, is a time lag automatically selected?  I get plausible results with the following inputs (only specifying channelcmb and method, data are freq structure) but I haven't specified a time lag…</div>
<div><br></div><div>>>>>snip<<<<<</div><div><p style="margin:0.0px 0.0px 0.0px 0.0px;font:10.0px Courier">cfg=[];</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:10.0px Courier">cfg.channelcmb={<span style="color:#b04ff1">'E59'</span> <span style="color:#b04ff1">'all'</span>};</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:10.0px Courier">cfg.method=<span style="color:#b04ff1">'granger'</span>;</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:10.0px Courier;min-height:12.0px">  </p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:10.0px Courier">w=ft_connectivityanalysis(cfg, TFR)</p></div><div><br></div><div>>>>>end snip<<<<</div><div><br></div><div>Sincerely,</div><div>Clara</div>
</div>