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