View source: R/PLNfit-S3methods.R
| logLik.PLNfit | R Documentation |
Returns the variational lower bound of the log-likelihood as a "logLik" object,
compatible with stats::AIC() and stats::BIC().
## S3 method for class 'PLNfit'
logLik(object, ...)
object |
an R6 object with class |
... |
additional parameters for S3 compatibility. Not used |
An object of class "logLik". The numeric value is the variational ELBO.
Attributes df and nobs hold the number of parameters and observations.
data(trichoptera)
trichoptera <- prepare_data(trichoptera$Abundance, trichoptera$Covariate)
model <- PLN(Abundance ~ 1, data = trichoptera)
logLik(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.