pan><span class="op">(</span>formula <span class="op">=</span> <span class="va">survived</span> <span class="op">~</span><span class="va">.</span>,</span>
<span>                            data <span class="op">=</span> <span class="va">titanic</span>,</span>
<span>                            train.p <span class="op">=</span> <span class="fl">.50</span>,  <span class="co"># use 50% to train, 50% to test</span></span>
<span>                            main <span class="op">=</span> <span class="st">"Titanic"