R/benchmark.L0glm.R
logLik.glmnet.Rd
Calculates the log-likelihood for models fitted using `glmnet`.
# S3 method for class 'glmnet' logLik(object, ...)
A `glmnet` model object.
Additional arguments. Named arguments weights, X, and y are required.
weights
X
y
The log-likelihood of the model.