Skip to contents

Calculates the log-likelihood for models fitted using `glmnet`.

Usage

# S3 method for class 'glmnet'
logLik(object, ...)

Arguments

object

A `glmnet` model object.

...

Additional arguments. Named arguments weights, X, and y are required.

Value

The log-likelihood of the model.