bestLogLikelihood: Get the log-likelihood

bestLogLikelihoodR Documentation

Get the log-likelihood

Description

Retrieves the final log-likelihood from all iterations of Gibbs sampling used to generate a celdaModel.

Usage

bestLogLikelihood(x, altExpName = "featureSubset")

## S4 method for signature 'SingleCellExperiment'
bestLogLikelihood(x, altExpName = "featureSubset")

## S4 method for signature 'celdaModel'
bestLogLikelihood(x)

Arguments

x

A SingleCellExperiment object returned by celda_C, celda_G, or celda_CG, or a celda model object.

altExpName

The name for the altExp slot to use. Default "featureSubset".

Value

Numeric. The log-likelihood at the final step of Gibbs sampling used to generate the model.

Examples

data(sceCeldaCG)
bestLogLikelihood(sceCeldaCG)
data(celdaCGMod)
bestLogLikelihood(celdaCGMod)

campbio/celda documentation built on April 5, 2024, 11:47 a.m.