Description Usage Arguments Value Author(s) References See Also

Makes multiple predictions on the test set using samples chosen from the data set based on past performance. Uses randomForest as the weak classifier and expects a multinomial character outcome variable. Makes a final prediction on the test set based on votes by the classifiers weighted by performance. Implementation of Zhu et al.'s Stagewise Additive Modeling using a Multi-class Exponential loss function (2006).

1 |

`formula` |
A formula expression for the classifier model. Expects the form outcome ~ predictors with a single outcome variable. The outcome variable is expected to be of type character. |

`data` |
A data frame consisting of the training data set. Must include all variables described in the formula including the outcome variable. |

`test` |
A data frame consisting of the test set to be predicted. Must include all predictor variables. May include outcome variable. |

`m` |
Number of classifiers to vote on final prediction. Defaults to 5. |

`trace` |
Setting for randomForest do.trace. Defaults to TRUE. |

`ntree` |
Number of trees for each randomForest to grow. Defaults to 500. |

`mtry` |
Number of variables randomForest randomly samples as candidates at each split. Defaults to the square root of the number of variables in data. |

Character vector consisting of a final prediction for each test set sample.

Shannon Rush [email protected]

Zhu, J., Rosset, S., Zou, H. and Hastie, T. (2005). Multiclass AdaBoost. Technical report, Stanford Univ. http://www.stanford.edu/~hastie/Papers/samme.pdf

bagRboostR documentation built on May 30, 2017, 2:45 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.