if (FALSE) {
# Without \code{MOSEK}, the example code is not executable.
# For installation of Mosek, plese see the documentation of 'Rmosek'.
data(table.b6)
model.ex1 <- cmaRs(y ~ .,
degree = 2, nk = 20, classification = FALSE,
Auto.linpreds = FALSE, data = table.b6
)
data("trees", package = "datasets")
model.prediction <- cmaRs(Volume ~ ., degree = 5, nk = 20, data = trees)
data("etitanic", package = "earth")
model.classification <- cmaRs(survived ~ age,
data = etitanic, classification = TRUE
)
}
Run the code above in your browser using DataLab