Description Usage Arguments Details Value See Also Examples
View source: R/ML_EarthModel.R
Build a regression model using the techniques in Friedman's papers "Multivariate Adaptive Regression Splines" and "Fast MARS".
1 2 3 4 5 6 7 8 9  EarthModel(
pmethod = c("backward", "none", "exhaustive", "forward", "seqrep", "cv"),
trace = 0,
degree = 1,
nprune = NULL,
nfold = 0,
ncross = 1,
stratify = TRUE
)

pmethod 
pruning method. 
trace 
level of execution information to display. 
degree 
maximum degree of interaction. 
nprune 
maximum number of terms (including intercept) in the pruned model. 
nfold 
number of crossvalidation folds. 
ncross 
number of crossvalidations if 
stratify 
logical indicating whether to stratify crossvalidation samples by the response levels. 
factor
, numeric
nprune
, degree
*
* excluded from grids by default
Default values for the NULL
arguments and further model details can be
found in the source link below.
In calls to varimp
for EarthModel
, argument
metric
may be specified as "gcv"
(default) for the generalized
crossvalidation decrease over all subsets that include each predictor, as
"rss"
for the residual sums of squares decrease, or as
"nsubsets"
for the number of model subsets that include each
predictor. Variable importance is automatically scaled to range from 0 to
100. To obtain unscaled importance values, set scale = FALSE
. See
example below.
MLModel
class object.
1 2 3 4 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.