span>
<span class="r-in"><span><span class="co"># Example I</span></span></span>
<span class="r-in"><span><span class="co"># binning of two variables in germancredit dataset</span></span></span>
<span class="r-in"><span><span class="co"># using tree method</span></span></span>
<span class="r-in"><span><span class="va">bins2_tree</span> <span class="op">=</span> <span class="fu">woebin</span><span class="op">(</span><span class="va">germancredit</span>, y<span class="op">=</span><span class="st">"creditabili