Skip to contents

Extract the log-likelihood of an ncvreg or ncvsurv object.

Usage

# S3 method for class 'ncvreg'
logLik(object, REML = FALSE, ...)

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

Arguments

object

An ncvreg or ncvsurv object, as obtained from ncvreg() or ncvsurv()

REML

As in logLik.lm()

...

For S3 compatibility

Value

An object with S3 class logLik. This is a vector of numbers (the log-likelihood at each value of the regularization parameter) with the following attributes:

df

Degrees of freedom

nobs

Number of observations

See also