title: Key methods selection in rpart
body: <p>What's the rule to select the complexity parameter (<code>cp</code>) and method in <code>rpart()</code> function from the <a href="https://CRAN.R-project.org/package=rpart" rel="nofollow noreferrer"><code>rpart</code></a>? I've read a couple articles regarding the package, but the contents was too technical for me to grok.</p>
  
  <p>Example:</p>
  
  <pre><code>rpart_1 &lt;- rpart(myFormula, data = kyphosis,
                   method = "class", 
                   control = rpart.control(minsplit = 0, cp = 0))
  plotcp(rpart_1)
  printcp(rpart_1)
  </code></pre>