Learn R Programming

cmaRs (version 0.1.3)

plot.cmaRs: A plot function designed for prediction of CMARS

Description

This function allows you to construct three different plots, namely actual versus predicted response; fitted values versus standardized residuals; and standardized residuals versus order if the model is constructed for prediction purpose. Moreover, Receiver Operating Characteristic Curve of classification models can be produced.

Usage

# S3 method for cmaRs
plot(x, ...)

Value

An S3 model of class "plot.cmaRs"

Arguments

x

A cmaRs object which is obtained by prediction.

...

Additional parameters.

Examples

Run this code
if (FALSE) {
# Without \code{MOSEK}, the example code is not executable.
# For installation of Mosek, plese see the documentation of 'Rmosek'.
data("trees", package = "datasets")
model.prediction <- cmaRs(Volume ~ ., degree = 5, nk = 20, data = trees)
plot.cmaRs(model.prediction)
}

Run the code above in your browser using DataLab