coef.cv_plmm | R Documentation |
Coef method for "cv_plmm" class
## S3 method for class 'cv_plmm'
coef(object, lambda, which = object$min, ...)
object |
An object of class "cv_plmm." |
lambda |
A numeric vector of lambda values. |
which |
Vector of lambda indices for which coefficients to return. Defaults to lambda index with minimum CVE. |
... |
Additional arguments (not used). |
Returns a named numeric vector. Values are the coefficients of the
model at the specified value of either lambda
or which
. Names are the
values of lambda
.
admix_design <- create_design(X = admix$X, y = admix$y)
cv_fit <- cv_plmm(design = admix_design, return_fit = TRUE)
head(coef(cv_fit))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.