Learn R Programming

DMRnet (version 0.4.0)

plot.cv.DMR: plot.cv.DMR

Description

Plots cross-validated error values from a cv.DMR object.

Usage

# S3 method for cv.DMR
plot(x, ...)

Arguments

x

Fitted cv.DMR object.

...

Further arguments passed to or from other methods.

Details

Produces a plot of cross-validated error values for the entire sequence of models from the fitted cv.DMR object. The horizontal level indicating separation of one standard deviation from the minimum error is indicated with a blue dashed line. The df.min (the smallest model minimizing the cross-validated error) and df.1se (the smallest model falling under the blue dashed line) are marked with red and blue points, respectively.

Examples

Run this code
## cv.DMR for linear regression
set.seed(13)
data(miete)
y <- miete$rent
X <- miete$area
cv = cv.DMR(X,y)
plot(cv)

Run the code above in your browser using DataLab