View source: R/PLNfit-S3methods.R
| AIC.PLNfit | R Documentation |
Computes the variational AIC as loglik - nb_param (larger is better).
This follows the maximization convention used throughout PLNmodels.
## S3 method for class 'PLNfit'
AIC(object, ..., k = 2)
object |
an R6 object with class |
... |
additional parameters for S3 compatibility. Not used |
k |
not used, present for S3 compatibility. |
A scalar: the variational AIC (larger is better).
data(trichoptera)
trichoptera <- prepare_data(trichoptera$Abundance, trichoptera$Covariate)
model <- PLN(Abundance ~ 1, data = trichoptera)
AIC(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.