</span><span class="sc">\n</span><span class="st">&quot;</span>)</span>
<span id="cb14-24"><a href="#cb14-24" tabindex="-1"></a><span class="co">#&gt; Mean time-series - Mean: 0 SD: 1</span></span>
<span id="cb14-25"><a href="#cb14-25" tabindex="-1"></a></span>
<span id="cb14-26"><a href="#cb14-26" tabindex="-1"></a><span class="co"># Find peak activation time</span></span>
<span id="cb14-27"><a href="#cb14-27" tabindex="-1"></a>peak_time <span class="ot">&lt;-</span> <span class="fu">which.max</span>(z_ts)