View source: R/PLNfit-S3methods.R
| ICL | R Documentation |
Generic function to compute the Integrated Classification Likelihood (ICL) of a fitted model. ICL = BIC - entropy of the variational distribution (larger is better).
ICL.PLNfit: ICL for a fitted PLNfit.
ICL.ZIPLNfit: ICL for a fitted ZIPLNfit.
ICL(object, ...)
## S3 method for class 'PLNfit'
ICL(object, ...)
## S3 method for class 'ZIPLNfit'
ICL(object, ...)
object |
an R6 object with class |
... |
additional parameters passed to methods |
A scalar: the variational ICL (larger is better).
data(trichoptera)
trichoptera <- prepare_data(trichoptera$Abundance, trichoptera$Covariate)
model <- PLN(Abundance ~ 1, data = trichoptera)
ICL(model)
data(trichoptera)
trichoptera <- prepare_data(trichoptera$Abundance, trichoptera$Covariate)
model <- ZIPLN(Abundance ~ 1, data = trichoptera)
ICL(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.