coef.cv.DMR | R Documentation |
Extracts coefficients from a cv.DMR
object (for the model with minimal cross-validated error /the default/ or the smallest model falling under the upper curve of a prediction error plus one standard deviation).
## S3 method for class 'cv.DMR'
coef(object, md = "df.min", ...)
object |
Fitted |
md |
Value of the model dimension parameter at which predictions are required. The default is |
... |
Further arguments passed to or from other methods. |
Similar to other coef
methods, this function extracts coefficients from a fitted cv.DMR
object.
Vector of coefficients.
## cv.DMR for linear regression
set.seed(13)
data(miete)
y <- miete$rent
X <- miete$area
cv = cv.DMR(X,y)
coef(cv)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.