<|start_filename|>docs/reference/rbin_create.html<|end_filename|>
<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html lang="en">
  <head>
  <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Create dummy variables — rbin_create • rbin</title>


<!-- jquery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
<!-- Bootstrap -->

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous" />

<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script>

<!-- bootstrap-toc -->
<link rel="stylesheet" href="../bootstrap-toc.css">
<script src="../bootstrap-toc.js"></script>

<!-- Font Awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous" />

<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script>

<!-- headroom.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script>

<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../pkgdown.js"></script>




<meta property="og:title" content="Create dummy variables — rbin_create" />
<meta property="og:description" content="Create dummy variables from bins." />




<!-- mathjax -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script>

<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->



  </head>

  <body data-spy="scroll" data-target="#toc">
    <div class="container template-reference-topic">
      <header>
      <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
  <div class="container">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <span class="navbar-brand">
        <a class="navbar-link" href="../index.html">rbin</a>
        <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.2.0.9000</span>
      </span>
    </div>

    <div id="navbar" class="navbar-collapse collapse">
      <ul class="nav navbar-nav">
        <li>
  <a href="../index.html">Home</a>
</li>
<li class="dropdown">
  <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
    Guides
     
    <span class="caret"></span>
  </a>
  <ul class="dropdown-menu" role="menu">
    <li>
      <a href="../articles/introduction.html">Introduction</a>
    </li>
  </ul>
</li>
<li class="dropdown">
  <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
    Reference
     
    <span class="caret"></span>
  </a>
  <ul class="dropdown-menu" role="menu">
    <li>
      <a href="../reference/index.html">Functions</a>
    </li>
    <li>
      <a href="../news/index.html">News</a>
    </li>
  </ul>
</li>
      </ul>
      <ul class="nav navbar-nav navbar-right">
        <li>
  <a href="https://github.com/rsquaredacademy/rbin">
    <span class="fa fa-github"></span>
     
  </a>
</li>
      </ul>
      
    </div><!--/.nav-collapse -->
  </div><!--/.container -->
</div><!--/.navbar -->

      

      </header>

<div class="row">
  <div class="col-md-9 contents">
    <div class="page-header">
    <h1>Create dummy variables</h1>
    <small class="dont-index">Source: <a href='https://github.com/rsquaredacademy/rbin/blob/master/R/rbin-create-bins.R'><code>R/rbin-create-bins.R</code></a></small>
    <div class="hidden name"><code>rbin_create.Rd</code></div>
    </div>

    <div class="ref-description">
    <p>Create dummy variables from bins.</p>
    </div>

    <pre class="usage"><span class='fu'>rbin_create</span>(<span class='no'>data</span>, <span class='no'>predictor</span>, <span class='no'>bins</span>)</pre>

    <h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
    <table class="ref-arguments">
    <colgroup><col class="name" /><col class="desc" /></colgroup>
    <tr>
      <th>data</th>
      <td><p>A <code>data.frame</code> or <code>tibble</code>.</p></td>
    </tr>
    <tr>
      <th>predictor</th>
      <td><p>Variable for which dummy variables must be created.</p></td>
    </tr>
    <tr>
      <th>bins</th>
      <td><p>An object of class <code>rbin_manual</code> or <code>rbin_quantiles</code> or <code>rbin_equal_length</code> or <code>rbin_winsorized</code>.</p></td>
    </tr>
    </table>

    <h2 class="hasAnchor" id="value"><a class="anchor" href="#value"></a>Value</h2>

    <p><code>data</code> with dummy variables.</p>

    <h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
    <pre class="examples"><div class='input'><span class='no'>k</span> <span class='kw'>&lt;-</span> <span class='fu'><a href='rbin_manual.html'>rbin_manual</a></span>(<span class='no'>mbank</span>, <span class='no'>y</span>, <span class='no'>age</span>, <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></span>(<span class='fl'>29</span>, <span class='fl'>39</span>, <span class='fl'>56</span>))
<span class='fu'>rbin_create</span>(<span class='no'>mbank</span>, <span class='no'>age</span>, <span class='no'>k</span>)</div><div class='output co'>#&gt;    age           job  marital education default balance housing loan   contact
#&gt; 1   34    technician  married  tertiary      no     297     yes   no  cellular
#&gt; 2   49      services  married secondary      no     180     yes  yes   unknown
#&gt; 3   38        admin.   single secondary      no     262      no   no  cellular
#&gt; 4   47      services  married secondary      no     367     yes   no  cellular
#&gt; 5   51 self-employed   single secondary      no    1640     yes   no   unknown
#&gt; 6   40    unemployed  married secondary      no    3382     yes   no   unknown
#&gt; 7   58       retired  married secondary      no    1227      no   no  cellular
#&gt; 8   32    unemployed  married   primary      no     309     yes   no telephone
#&gt; 9   46   blue-collar  married secondary      no     922     yes   no telephone
#&gt; 10  32      services  married  tertiary      no       0      no   no  cellular
#&gt; 11  32      services  married secondary      no     414     yes   no  cellular
#&gt; 12  50   blue-collar  married   primary      no       0      no   no   unknown
#&gt; 13  41    management  married  tertiary      no    2226      no   no  cellular
#&gt; 14  38      services divorced   primary      no       0     yes   no  cellular
#&gt; 15  31 self-employed  married  tertiary     yes     147     yes   no  cellular
#&gt; 16  42        admin.   single secondary      no     283     yes   no   unknown
#&gt; 17  56       retired  married   primary      no      -1      no   no  cellular
#&gt; 18  54    management divorced   unknown      no     901      no   no   unknown
#&gt; 19  42    management  married secondary      no     372     yes   no telephone
#&gt; 20  58      services  married secondary      no     627      no   no  cellular
#&gt; 21  51        admin.  married  tertiary      no      26     yes   no telephone
#&gt; 22  44    management  married secondary      no     438     yes   no telephone
#&gt; 23  51    management   single   unknown      no    -461     yes   no   unknown
#&gt; 24  41    management  married  tertiary      no    -195      no  yes  cellular
#&gt; 25  57    technician  married secondary      no   16063     yes   no   unknown
#&gt; 26  32    management   single  tertiary      no    3097     yes   no  cellular
#&gt; 27  32    management  married  tertiary      no    1232      no   no  cellular
#&gt; 28  45    management  married  tertiary      no    4693      no  yes  cellular
#&gt; 29  56  entrepreneur  married secondary      no     196      no   no  cellular
#&gt; 30  38    technician  married secondary      no       0     yes   no   unknown
#&gt; 31  54 self-employed  married  tertiary      no     990      no   no  cellular
#&gt; 32  53    unemployed   single   primary      no     183      no   no  cellular
#&gt; 33  36    management   single  tertiary      no     219      no   no  cellular
#&gt; 34  37   blue-collar  married secondary      no     -97     yes   no   unknown
#&gt; 35  31      services   single secondary      no     222     yes   no  cellular
#&gt; 36  42    technician  married secondary      no     234      no   no  cellular
#&gt; 37  34      services   single   primary      no      25     yes  yes  cellular
#&gt; 38  37    technician  married secondary      no    1762      no   no  cellular
#&gt; 39  59   blue-collar  married   primary      no      80     yes   no telephone
#&gt; 40  54    management  married   primary     yes       0     yes  yes  cellular
#&gt; 41  54   blue-collar  married   primary      no    1357     yes  yes  cellular
#&gt; 42  59        admin.  married secondary      no    -198     yes  yes  cellular
#&gt; 43  33    management   single  tertiary      no    2059      no   no  cellular
#&gt; 44  24      services   single secondary      no     258     yes   no  cellular
#&gt; 45  29    technician   single  tertiary      no    2269     yes   no  cellular
#&gt; 46  49   blue-collar  married secondary      no       0      no   no  cellular
#&gt; 47  37    technician  married secondary      no      77     yes  yes  cellular
#&gt;    day month duration campaign pdays previous poutcome y age_&lt;_29 age_&lt;_39
#&gt; 1   29   jan      375        2    -1        0  unknown 0        0        1
#&gt; 2    2   jun      392        3    -1        0  unknown 0        0        0
#&gt; 3    3   feb      315        2   180        6  failure 1        0        1
#&gt; 4   12   may      309        1   306        4  success 1        0        0
#&gt; 5   15   may       67        4    -1        0  unknown 0        0        0
#&gt; 6   14   may      125        1    -1        0  unknown 0        0        0
#&gt; 7   14   aug      182        2    37        2  failure 0        0        0
#&gt; 8   13   may      185        1   370        3  failure 0        0        1
#&gt; 9   18   nov      296        2    -1        0  unknown 0        0        0
#&gt; 10  21   nov       80        1    -1        0  unknown 0        0        1
#&gt; 11   3   feb      236        2   272        1  failure 0        0        1
#&gt; 12   9   jun      199        4    -1        0  unknown 0        0        0
#&gt; 13   7   aug      182        2    99        1  failure 1        0        0
#&gt; 14  20   nov      250        1   155        2  failure 0        0        1
#&gt; 15  11   may       12        5    -1        0  unknown 0        0        1
#&gt; 16  19   jun      446        1    -1        0  unknown 0        0        0
#&gt; 17  27   aug       89       23    -1        0  unknown 0        0        0
#&gt; 18  20   jun        7        3    -1        0  unknown 0        0        0
#&gt; 19  31   jul      130        8    -1        0  unknown 0        0        0
#&gt; 20  13   aug      110        4    -1        0  unknown 0        0        0
#&gt; 21  28   aug       51        3    -1        0  unknown 0        0        0
#&gt; 22   9   jul       42        1    -1        0  unknown 0        0        0
#&gt; 23  28   may       33        2    -1        0  unknown 0        0        0
#&gt; 24  20   nov      112        1    -1        0  unknown 0        0        0
#&gt; 25  30   may      352        3    -1        0  unknown 0        0        0
#&gt; 26  20   nov      167        1    -1        0  unknown 0        0        1
#&gt; 27  25   aug       97        4    -1        0  unknown 0        0        1
#&gt; 28   9   jul      148        2    -1        0  unknown 0        0        0
#&gt; 29  19   nov      312        3    -1        0  unknown 0        0        0
#&gt; 30  21   may       73        1    -1        0  unknown 0        0        1
#&gt; 31   3   jun      244        2    -1        0  unknown 1        0        0
#&gt; 32   9   jun      835        2    -1        0  unknown 0        0        0
#&gt; 33   3   feb       22        6   196        6  failure 0        0        1
#&gt; 34   5   jun      135        2    -1        0  unknown 0        0        1
#&gt; 35  13   may      168        2    -1        0  unknown 0        0        1
#&gt; 36   4   feb      765        2    -1        0  unknown 0        0        0
#&gt; 37   9   apr       96        4   314        8    other 0        0        1
#&gt; 38  16   apr      334        2    -1        0  unknown 1        0        1
#&gt; 39  31   jul       46       21    -1        0  unknown 0        0        0
#&gt; 40   6   may       95        1    -1        0  unknown 0        0        0
#&gt; 41   5   may      305        5   349        7    other 0        0        0
#&gt; 42   8   may      206        1    -1        0  unknown 0        0        0
#&gt; 43  29   aug      106        2    -1        0  unknown 0        0        1
#&gt; 44  18   may      248        1    -1        0  unknown 0        1        0
#&gt; 45  20   apr       53        1   346        1  failure 0        0        1
#&gt; 46  14   aug      189        4    -1        0  unknown 0        0        0
#&gt; 47  21   nov       44        1    -1        0  unknown 0        0        1
#&gt;    age_&lt;_56 age_&gt;=_56
#&gt; 1         0         0
#&gt; 2         1         0
#&gt; 3         0         0
#&gt; 4         1         0
#&gt; 5         1         0
#&gt; 6         1         0
#&gt; 7         0         1
#&gt; 8         0         0
#&gt; 9         1         0
#&gt; 10        0         0
#&gt; 11        0         0
#&gt; 12        1         0
#&gt; 13        1         0
#&gt; 14        0         0
#&gt; 15        0         0
#&gt; 16        1         0
#&gt; 17        0         1
#&gt; 18        1         0
#&gt; 19        1         0
#&gt; 20        0         1
#&gt; 21        1         0
#&gt; 22        1         0
#&gt; 23        1         0
#&gt; 24        1         0
#&gt; 25        0         1
#&gt; 26        0         0
#&gt; 27        0         0
#&gt; 28        1         0
#&gt; 29        0         1
#&gt; 30        0         0
#&gt; 31        1         0
#&gt; 32        1         0
#&gt; 33        0         0
#&gt; 34        0         0
#&gt; 35        0         0
#&gt; 36        1         0
#&gt; 37        0         0
#&gt; 38        0         0
#&gt; 39        0         1
#&gt; 40        1         0
#&gt; 41        1         0
#&gt; 42        0         1
#&gt; 43        0         0
#&gt; 44        0         0
#&gt; 45        0         0
#&gt; 46        1         0
#&gt; 47        0         0
#&gt;  [ reached 'max' / getOption("max.print") -- omitted 4474 rows ]</div><div class='input'>
</div></pre>
  </div>
  <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar">
    <nav id="toc" data-toggle="toc" class="sticky-top">
      <h2 data-toc-skip>Contents</h2>
    </nav>
  </div>
</div>


      <footer>
      <div class="copyright">
  <p>Developed by <a href='https://www.aravindhebbali.com'>Arav<NAME></a>.</p>
</div>

<div class="pkgdown">
  <p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.5.1.</p>
</div>

      </footer>
   </div>

  


  </body>
</html>




<|start_filename|>docs/reference/rbin_equal_length.html<|end_filename|>
<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html lang="en">
  <head>
  <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Equal length binning — rbin_equal_length • rbin</title>


<!-- jquery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
<!-- Bootstrap -->

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha256-bZLfwXAP04zRMK2BjiO8iu9pf4FbLqX6zitd+tIvLhE=" crossorigin="anonymous" />

<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script>

<!-- bootstrap-toc -->
<link rel="stylesheet" href="../bootstrap-toc.css">
<script src="../bootstrap-toc.js"></script>

<!-- Font Awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous" />

<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script>

<!-- headroom.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script>

<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../pkgdown.js"></script>




<meta property="og:title" content="Equal length binning — rbin_equal_length" />
<meta property="og:description" content="Bin continuous data using the equal length binning method." />




<!-- mathjax -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script>

<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->



  </head>

  <body data-spy="scroll" data-target="#toc">
    <div class="container template-reference-topic">
      <header>
      <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
  <div class="container">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <span class="navbar-brand">
        <a class="navbar-link" href="../index.html">rbin</a>
        <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.2.0.9000</span>
      </span>
    </div>

    <div id="navbar" class="navbar-collapse collapse">
      <ul class="nav navbar-nav">
        <li>
  <a href="../index.html">Home</a>
</li>
<li class="dropdown">
  <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
    Guides
     
    <span class="caret"></span>
  </a>
  <ul class="dropdown-menu" role="menu">
    <li>
      <a href="../articles/introduction.html">Introduction</a>
    </li>
  </ul>
</li>
<li class="dropdown">
  <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
    Reference
     
    <span class="caret"></span>
  </a>
  <ul class="dropdown-menu" role="menu">
    <li>
      <a href="../reference/index.html">Functions</a>
    </li>
    <li>
      <a href="../news/index.html">News</a>
    </li>
  </ul>
</li>
      </ul>
      <ul class="nav navbar-nav navbar-right">
        <li>
  <a href="https://github.com/rsquaredacademy/rbin">
    <span class="fa fa-github"></span>
     
  </a>
</li>
      </ul>
      
    </div><!--/.nav-collapse -->
  </div><!--/.container -->
</div><!--/.navbar -->

      

      </header>

<div class="row">
  <div class="col-md-9 contents">
    <div class="page-header">
    <h1>Equal length binning</h1>
    <small class="dont-index">Source: <a href='https://github.com/rsquaredacademy/rbin/blob/master/R/rbin-equal-length.R'><code>R/rbin-equal-length.R</code></a></small>
    <div class="hidden name"><code>rbin_equal_length.Rd</code></div>
    </div>

    <div class="ref-description">
    <p>Bin continuous data using the equal length binning method.</p>
    </div>

    <pre class="usage"><span class='fu'>rbin_equal_length</span>(
  <span class='kw'>data</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
  <span class='kw'>response</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
  <span class='kw'>predictor</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
  <span class='kw'>bins</span> <span class='kw'>=</span> <span class='fl'>10</span>,
  <span class='kw'>include_na</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>
)

<span class='co'># S3 method for rbin_equal_length</span>
<span class='fu'><a href='https://rdrr.io/r/base/plot.html'>plot</a></span>(<span class='no'>x</span>, <span class='kw'>print_plot</span> <span class='kw'>=</span> <span class='fl'>TRUE</span>, <span class='no'>...</span>)</pre>

    <h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2>
    <table class="ref-arguments">
    <colgroup><col class="name" /><col class="desc" /></colgroup>
    <tr>
      <th>data</th>
      <td><p>A <code>data.frame</code> or <code>tibble</code>.</p></td>
    </tr>
    <tr>
      <th>response</th>
      <td><p>Response variable.</p></td>
    </tr>
    <tr>
      <th>predictor</th>
      <td><p>Predictor variable.</p></td>
    </tr>
    <tr>
      <th>bins</th>
      <td><p>Number of bins.</p></td>
    </tr>
    <tr>
      <th>include_na</th>
      <td><p>logical; if <code>TRUE</code>, a separate bin is created for missing values.</p></td>
    </tr>
    <tr>
      <th>x</th>
      <td><p>An object of class <code>rbin_equal_length</code>.</p></td>
    </tr>
    <tr>
      <th>print_plot</th>
      <td><p>logical; if <code>TRUE</code>, prints the plot else returns a plot object.</p></td>
    </tr>
    <tr>
      <th>...</th>
      <td><p>further arguments passed to or from other methods.</p></td>
    </tr>
    </table>

    <h2 class="hasAnchor" id="value"><a class="anchor" href="#value"></a>Value</h2>

    <p>A <code>tibble</code>.</p>

    <h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2>
    <pre class="examples"><div class='input'><span class='no'>bins</span> <span class='kw'>&lt;-</span> <span class='fu'>rbin_equal_length</span>(<span class='no'>mbank</span>, <span class='no'>y</span>, <span class='no'>age</span>, <span class='fl'>10</span>)
<span class='no'>bins</span></div><div class='output co'>#&gt; Binning Summary
#&gt; ---------------------------------
#&gt; Method               Equal Length 
#&gt; Response             y 
#&gt; Predictor            age 
#&gt; Bins                 10 
#&gt; Count                4521 
#&gt; Goods                517 
#&gt; Bads                 4004 
#&gt; Entropy              0.5 
#&gt; Information Value    0.17 
#&gt; 
#&gt; 
#&gt;    cut_point bin_count good  bad         woe
#&gt; 1     &lt; 24.6        85   24   61 -1.11418623
#&gt; 2     &lt; 31.2       822  106  716 -0.13676519
#&gt; 3     &lt; 37.8      1133  115 1018  0.13365680
#&gt; 4     &lt; 44.4       943   82  861  0.30436899
#&gt; 5       &lt; 51       623   52  571  0.34913923
#&gt; 6     &lt; 57.6       612   66  546  0.06595797
#&gt; 7     &lt; 64.2       229   43  186 -0.58245971
#&gt; 8     &lt; 70.8        34   12   22 -1.44087046
#&gt; 9     &lt; 77.4        25   13   12 -2.12704897
#&gt; 10   &gt;= 77.4        15    4   11 -1.03540535
#&gt;              iv   entropy
#&gt; 1  0.0347480126 0.8586371
#&gt; 2  0.0035843196 0.5545619
#&gt; 3  0.0042514380 0.4737339
#&gt; 4  0.0171748162 0.4262287
#&gt; 5  0.0146733167 0.4142794
#&gt; 6  0.0005741022 0.4933757
#&gt; 7  0.0213871054 0.6967893
#&gt; 8  0.0255269312 0.9366674
#&gt; 9  0.0471100183 0.9988455
#&gt; 10 0.0051663529 0.8366407</div><div class='input'>
<span class='co'># plot</span>
<span class='fu'><a href='https://rdrr.io/r/base/plot.html'>plot</a></span>(<span class='no'>bins</span>)</div><div class='img'><img src='rbin_equal_length-1.png' alt='' width='700' height='433' /></div><div class='input'>

</div></pre>
  </div>
  <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar">
    <nav id="toc" data-toggle="toc" class="sticky-top">
      <h2 data-toc-skip>Contents</h2>
    </nav>
  </div>
</div>


      <footer>
      <div class="copyright">
  <p>Developed by <a href='https://www.aravindhebbali.com'><NAME></a>.</p>
</div>

<div class="pkgdown">
  <p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.5.1.</p>
</div>

      </footer>
   </div>

  


  </body>
</html>


