Skip to contents

Extract the (marginal) log-likelihood of a ecostate model

Usage

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

Arguments

object

Output from ecostate

...

Not used

Value

object of class logLik with attributes

val

log-likelihood

df

number of parameters

Returns an object of class logLik. This has attributes "df" (degrees of freedom) giving the number of (estimated) fixed effects in the model, abd "val" (value) giving the marginal log-likelihood. This class then allows AIC to work as expected.