
<h1>Practical Example: ROI-Based Time-Series Analysis</h1>
<p>Here’s a complete workflow combining multiple features:</p>
<div class="sourceCode" id="cb14"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb14-1"><a href="#cb14-1" tabindex="-1"></a><span class="co"># Create synthetic fMRI-like data</span></span>
<span id="cb14-2"><a href="#cb14-2" tabindex="-1"></a>dims_fmri <span class="ot">&lt;-</span> <span class="fu">c</span>(<span class="dv">20</span>, <span class="dv">20</span>, <span