 class="co"># Simulate data set</span>
<span class="va">sim</span> <span class="op">&lt;-</span> <span class="fu"><a href="../reference/lplsData.html">lplsData</a></span><span class="op">(</span>I <span class="op">=</span> <span class="fl">30</span>, N <span class="op">=</span> <span class="fl">20</span>, J <span class="op">=</span> <span class="fl">5</span>, K <span class="op">=</span> <span class="fl">6</span>, ncomp <span class="op">=</span> <span class="fl">2</span><span class="op">)</span>

<span class