logLikelihood {celda} | R Documentation

## Calculate LogLikelihood

### Description

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

### Usage

    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

    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
    )

[Package celda version 1.2.4 Index]