calculateLoglikFromVariables.Rd
Calculate a log-likelihood for a user-provided cluster assignment and count matrix, per the desired celda model.
calculateLoglikFromVariables(counts, model, ...)
counts | The counts matrix used to generate the provided cluster assignments. |
---|---|
model | Celda model. Options available in `celda::available.models`. |
... | Additional parameters. |
The log-likelihood of the provided cluster assignment for the provided counts matrix.
celda.sim = simulateCells(model="celda_CG") loglik = calculateLoglikFromVariables(celda.sim$counts, model="celda_CG", sample.label=celda.sim$sample.label, z=celda.sim$z, y=celda.sim$y, K=celda.sim$K, L=celda.sim$L, alpha=celda.sim$alpha, beta=celda.sim$beta, gamma=celda.sim$gamma, delta=celda.sim$delta)