rpart.control {rpart} | R Documentation |

Various parameters that control aspects of the `rpart`

fit.

```
rpart.control(minsplit = 20, minbucket = round(minsplit/3), cp = 0.01,
maxcompete = 4, maxsurrogate = 5, usesurrogate = 2, xval = 10,
surrogatestyle = 0, maxdepth = 30, ...)
```

`minsplit` |
the minimum number of observations that must exist in a node in order for a split to be attempted. |

`minbucket` |
the minimum number of observations in any terminal |

`cp` |
complexity parameter. Any split that does not decrease the overall
lack of fit by a factor of |

`maxcompete` |
the number of competitor splits retained in the output. It is useful to know not just which split was chosen, but which variable came in second, third, etc. |

`maxsurrogate` |
the number of surrogate splits retained in the output. If this is set to zero the compute time will be reduced, since approximately half of the computational time (other than setup) is used in the search for surrogate splits. |

`usesurrogate` |
how to use surrogates in the splitting process. |

`xval` |
number of cross-validations. |

`surrogatestyle` |
controls the selection of a best surrogate.
If set to |

`maxdepth` |
Set the maximum depth of any node of the final tree, with the root
node counted as depth 0. Values greater than 30 |

`...` |
mop up other arguments. |

A list containing the options.

[Package *rpart* version 4.1.23 Index]