or"></a>L-PLS cross-validation</h2>
<p>Cross-validation comes with choices of directions when applying this to L-PLS since we have both sample and variable links. The cross-validation routines compute RMSECV values and does cross-validated predictions.</p>
<div class="sourceCode" id="cb6"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span class="co"># LOO cross-validation horizontally</span>
<span class="va">lp.cv1</span> <span class="op">&lt;-</span> <span class="fu"><a href="../reference/