plot.cv.DMR: plot.cv.DMR

View source: R/plot.cv.DMR.R

plot.cv.DMRR Documentation

plot.cv.DMR

Description

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

Usage

## S3 method for class '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

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


DMRnet documentation built on Aug. 7, 2023, 5:11 p.m.