powered by
earth
## S3 method for class 'formula': bagEarth(formula, data = NULL, B = 50, summary = mean, keepX = TRUE, ..., subset, weights, na.action = na.omit) ## S3 method for class 'default': bagEarth(x, y, weights = NULL, B = 50, summary = mean, keepX = TRUE, ...)
B
NULL
x
keepX
predict.bagEarth
library(mda) library(earth) data(trees) fit1 <- earth(trees[,-3], trees[,3]) fit2 <- bagEarth(trees[,-3], trees[,3], B = 10)
Run the code above in your browser using DataLab