powered by
Computes the variational AIC as loglik - nb_param (larger is better). This follows the maximization convention used throughout PLNmodels.
loglik - nb_param
# S3 method for ZIPLNfit AIC(object, ..., k = 2)
A scalar: the variational AIC (larger is better).
an R6 object with class ZIPLNfit
ZIPLNfit
additional parameters for S3 compatibility. Not used
not used, present for S3 compatibility.
data(trichoptera) trichoptera <- prepare_data(trichoptera$Abundance, trichoptera$Covariate) model <- ZIPLN(Abundance ~ 1, data = trichoptera) AIC(model)
Run the code above in your browser using DataLab