logLikelihood: Calculate a log-likelihood for a user-provided cluster...

Description Usage Arguments Value Examples

View source: R/s3_generics.R

Description

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

Usage

1
logLikelihood(counts, model, ...)

Arguments

counts

The counts matrix used to generate the provided cluster assignments.

model

Celda model. Options available in 'celda::available.models'.

...

Additional parameters.

Value

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

Examples

1
2
3
4
5
6
loglik = logLikelihood(celda.CG.sim$counts, model="celda_CG", 
                       sample.label=celda.CG.sim$sample.label,
                       z=celda.CG.sim$z, y=celda.CG.sim$y,
                       K=celda.CG.sim$K, L=celda.CG.sim$L,
                       alpha=celda.CG.sim$alpha, beta=celda.CG.sim$beta,
                       gamma=celda.CG.sim$gamma, delta=celda.CG.sim$delta)

compbiomed/celda documentation built on May 25, 2019, 3:58 a.m.