[R] rcart - classification and regression trees (CART)

Terry Therneau therneau at mayo.edu
Wed Dec 16 15:06:33 CET 2009


"Is there a way to tell it to make a tree with only one node?"
  - see the maxdepth parameter in ?rpart.control

"Is it safe to assume that the cut-off value on the primary node is the
ideal cut-off?"

  - trees are built sequentially; the first split will be the same for a
tree with only one split or one that continues further.

Terry T.




More information about the R-help mailing list