plot.cv.DMR {DMRnet} | R 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 |
... |
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)
[Package DMRnet version 0.4.0 Index]