Learn R Programming

PLNmodels (version 1.3.1)

AIC.PLNfit: Akaike Information Criterion for a fitted PLN model

Description

Computes the variational AIC as loglik - nb_param (larger is better). This follows the maximization convention used throughout PLNmodels.

Usage

# S3 method for PLNfit
AIC(object, ..., k = 2)

Value

A scalar: the variational AIC (larger is better).

Arguments

object

an R6 object with class PLNfit

...

additional parameters for S3 compatibility. Not used

k

not used, present for S3 compatibility.

Examples

Run this code
data(trichoptera)
trichoptera <- prepare_data(trichoptera$Abundance, trichoptera$Covariate)
model <- PLN(Abundance ~ 1, data = trichoptera)
AIC(model)

Run the code above in your browser using DataLab