logLikelihood: Calculate LogLikelihood

Description Usage Arguments Value Examples

View source: R/all_generics.R

Description

Calculate a log-likelihood for a user-provided cluster assignment and count matrix, per the desired celdaModel.

Usage

1
logLikelihood(counts, model, ...)

Arguments

counts

The counts matrix used to generate the provided cluster assignments.

model

celdaModel. Options available in 'celda::availableModels'.

...

Additional parameters.

Value

The log-likelihood of the provided cluster assignment for the provided counts matrix.

Examples

1
2
3
4
5
6
7
8
9
data(celdaCGSim)
loglik <- logLikelihood(celdaCGSim$counts,
  model = "celda_CG",
  sampleLabel = celdaCGSim$sampleLabel,
  z = celdaCGSim$z, y = celdaCGSim$y,
  K = celdaCGSim$K, L = celdaCGSim$L,
  alpha = celdaCGSim$alpha, beta = celdaCGSim$beta,
  gamma = celdaCGSim$gamma, delta = celdaCGSim$delta
)

celda documentation built on June 9, 2020, 2 a.m.