Create an adapted version of Multivariate Adaptive Regression Splines (MARS) model to estimate a production frontier satisfying some classical production theory axioms, such as monotonicity and concavity.
MARSAdapted(
data,
x,
y,
nterms,
Kp = 1,
d = 2,
err_red = 0.01,
minspan = 0,
endspan = 0,
linpreds = FALSE,
na.rm = TRUE
)An AdaptedMARS object.
data.frame or matrix containing the variables in
the model.
Column input indexes in data.
Column output indexes in data.
Maximum number of reflected pairs created by the forward algorithm of MARS.
Maximum degree of interaction allowed. Default is 1.
Generalized Cross Validation (GCV) penalty per knot. Default is
2. If it is set to -1, GCV = RSS / n.
Minimum reduced error rate for the addition of two new basis
functions. Default is 0.01.
Minimum number of observations between knots. When
minspan = 0 (default), it is calculated as in Friedman's MARS paper
section 3.8 with alpha = 0.05.
Minimum number of observations before the first and after the
final knot. When endspan = 0 (default), it is calculated as in
Friedman's MARS paper section 3.8 with alpha = 0.05.
logical. If TRUE, predictors can enter linearly
logical. If TRUE, NA rows are omitted.