Description Usage Arguments Value Note Author(s) See Also Examples
Predicted values based on bagged Earth and FDA models
1 2 3 4 |
object |
Object of class inheriting from |
newdata |
An optional data frame or matrix in which to look for variables with which to predict. If omitted, the fitted values are used (see note below). |
type |
The type of prediction. For bagged |
... |
not used |
a vector of predictions
If the predictions for the original training set are needed, there are two ways to calculate them. First, the original data set can be predicted by each bagged earth model. Secondly, the predictions form each bootstrap sample could be used (but are more likely to overfit). If the original call to bagEarth
or bagFDA
had keepX = TRUE
, the first method is used, otherwise the values are calculated via the second method.
Max Kuhn
1 2 3 4 5 6 7 8 |
Loading required package: lattice
Loading required package: ggplot2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.