plot.cv.DMR | R Documentation |
Plots cross-validated error values from a cv.DMR
object.
## S3 method for class 'cv.DMR'
plot(x, ...)
x |
Fitted |
... |
Further arguments passed to or from other methods. |
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.
## cv.DMR for linear regression
set.seed(13)
data(miete)
y <- miete$rent
X <- miete$area
cv = cv.DMR(X,y)
plot(cv)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.