Learn R Programming

ecostate (version 0.2.0)

logLik.ecostate: Marginal log-likelihood

Description

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

Usage

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

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.

Arguments

object

Output from ecostate

...

Not used