no-5-10"></a><span class="p">)</span>
</code></pre></div>
<div class="highlight"><pre><span></span><code>Creating choice dataset from stata format data-frames...
Finished Creating Choice Dataset.
</code></pre></div>
<h2 id="r_2">R</h2>
<div class="highlight"><pre><span></span><code><a id="__codelineno-6-1" name="__codelineno-6-1" href="#__codelineno-6-1"></a>MC &lt;- dfidx(ModeCanada, subset = noalt == 4)
</code></pre></div>
<h1 id="step-3-define-and-fit-the-conditional-logit-model">Step 3: Define and Fit t