logLikelihood {celda} | R Documentation |
Calculate a log-likelihood for a user-provided cluster assignment and count matrix, per the desired celdaModel.
logLikelihood(counts, model, ...)
counts |
The counts matrix used to generate the provided cluster assignments. |
model |
celdaModel. Options available in 'celda::availableModels'. |
... |
Additional parameters. |
The log-likelihood of the provided cluster assignment for the provided counts matrix.
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 )