t-the-model">Step 3: fit the model<a class="anchor" aria-label="anchor" href="#step-3-fit-the-model"></a>
</h2>
<p>Having set up the data and covariance matrices you are ready to fit
the model using the <code>mash</code> function:</p>
<div class="sourceCode" id="cb5"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span class="va">m.c</span> <span class="op">=</span> <span class="fu"><a href="../reference/mash.html">mash</a></span><span class="op">(</span><span class="va">data</span>, <span cl