):</span>
<span class="va">pred.endo.X1</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://rdrr.io/r/stats/predict.html">predict</a></span><span class="op">(</span><span class="va">lp.endo</span>, X2new <span class="op">=</span> <span class="va">X2</span>, X3new <span class="op">=</span> <span class="va">X3</span><span class="op">)</span></code></pre></div>
</div>
<div id="l-pls-cross-validation" class="section level2">
<h2 class="hasAnchor">
<a href="#l-pls-cross-validation" class="anch