logLik.eicm: EICM (penalized) log-likelihood

View source: R/likelihood.r

logLik.eicmR Documentation

EICM (penalized) log-likelihood

Description

Compute the (penalized) log-likelihood of the data matrix included in the EICM model, or the log-likelihood of a new occurrence data matrix given the model.

Usage

## S3 method for class 'eicm'
logLik(object, occurrences = NULL, allow.na = TRUE, ...)

Arguments

object

a EICM model

occurrences

the occurrence data matrix. If omitted, the data matrix used to fit the model is used.

allow.na

logical. Allow NAs in the occurrence matrix? If no NAs exist, it's faster to set to FALSE.

...

additional argument(s) for methods.

Value

A logLik object.


eicm documentation built on May 31, 2023, 5:20 p.m.