Learn R Programming

PLNmodels (version 1.3.1)

BIC.ZIPLNfit: Bayesian Information Criterion for a fitted ZIPLN model

Description

Computes the variational BIC as loglik - 0.5 * log(n) * nb_param (larger is better). This follows the maximization convention used throughout PLNmodels.

Usage

# S3 method for ZIPLNfit
BIC(object, ...)

Value

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

Arguments

object

an R6 object with class ZIPLNfit

...

additional parameters for S3 compatibility. Not used

Examples

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

Run the code above in your browser using DataLab