Learn R Programming

celda (version 0.0.0.9000)

getBestModel: Select the best model from a celda_list, as determined by final log-likelihood.

Description

This function returns the celda model (celda_C, celda_G, celda_CG) from a celda_list with the maxiumim final log-likelihood. If a K or L (or combination) parameter is provided, the model with these K/L and the highest log-likelihood is returned.

Usage

getBestModel(celda.list, K = c(), L = c())

Arguments

celda.list

A celda_list object returned from celda()

K

Limit search for best model to models with this number of cell clusters.

L

Limit search for best model to models with this number of gene clusters.

Value

The celda model object with the highest finalLogLik attribute, meeting any K/L criteria provided