A summary function for cv_plmm objects
Usage
# S3 method for class 'cv_plmm'
summary(object, lambda = "min", ...)
Value
The return value is an object with S3 class summary.cv_plmm
. The class has its own print method and contains the following list elements:
lambda_min
: The lambda value at the minimum cross validation errorlambda.1se
: The maximum lambda value within 1 standard error of the minimum cross validation errorpenalty
: The penalty applied to the fitted modelnvars
: The number of non-zero coefficients at the selected lambda valuecve
: The cross validation error at all foldsmin
: The minimum cross validation errorfit
: Theplmm
fit used in the cross validation
if returnBiasDetails = TRUE
, two more items are returned:
bias
: The mean bias of the cross validationloss
: The loss at each value oflambda
Examples
admix_design <- create_design(X = admix$X, y = admix$y)
cv_fit <- cv_plmm(design = admix_design)
summary(cv_fit)
#> lasso-penalized model with n=197 and p=101
#> At minimum cross-validation error (lambda=0.2249):
#> -------------------------------------------------
#> Nonzero coefficients: 6
#> Cross-validation error (deviance): 2.12
#> Scale estimate (sigma): 1.456