The caret Package - NexTag Supports Open Source Initiatives
The caret Package - NexTag Supports Open Source Initiatives
The caret Package - NexTag Supports Open Source Initiatives
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
42 predict.bagEarth<br />
predict.bagEarth<br />
Predicted values based on bagged Earth and FDA models<br />
Description<br />
Predicted values based on bagged Earth and FDA models<br />
Usage<br />
predict.bagEarth(object, newdata = NULL, ...)<br />
predict.bagFDA(object, newdata = NULL, type = "class", ...)<br />
Arguments<br />
object<br />
newdata<br />
type<br />
... not used<br />
Object of class inheriting from bagEarth<br />
An optional data frame or matrix in which to look for variables with which to<br />
predict. If omitted, the fitted values are used (see note below).<br />
bagFDA only: if type = "class" is specified, a factor of class predictions<br />
(with the same levels as the original training outcome) are returned. If type =<br />
"probs", a matrix of class probabilities (i.e. vote rates) is returned.<br />
Value<br />
a vector of predictions<br />
Note<br />
If the predictions for the original training set are needed, there are two ways to calculate them.<br />
First, the original data set can be predicted by each bagged earth model. Secondly, the predictions<br />
form each bootstrap sample could be used (but are more likely to overfit). If the original call to<br />
bagEarth or bagFDA had keepX = TRUE, the first method is used, otherwise the values are<br />
calculated via the second method.<br />
Author(s)<br />
Max Kuhn<br />
See Also<br />
bagEarth