lass="hidden name"><code>trainLGMM.Rd</code></div>
    </div>

    <div class="ref-description">
    <p>This function iterates through a grid of values to train LGMMs,
optionally using a local or remote cluster.</p>
    </div>

    <pre class="usage"><span class='fu'>trainLGMM</span><span class='op'>(</span>
  <span class='va'>data</span>,
  <span class='va'>idvar</span>,
  <span class='va'>assessmentvar</span>,
  newdata <span class='op'>=</span> <span class='cn'>FALSE</span>,
  <span class='va'>tuneGrid</