selectBestModel: Select best chain within each combination of parameters

Description Usage Arguments Value See Also Examples

View source: R/celdaGridSearch.R

Description

Select the chain with the best log likelihood for each combination of tested parameters from a 'celda_list' object gererated by 'celdaGridSearch()'.

Usage

1
selectBestModel(celda.list)

Arguments

celda.list

Object of class 'celda_list'. An object containing celda models returned from 'celdaGridSearch()'.

Value

A new 'celda_list' object containing one model with the best log likelihood for each set of parameters. If only one set of parameters is in the 'celda_list', the best model will be returned directly instead of a 'celda_list' object.

See Also

'celdaGridSearch()' can run Celda with multiple parameters and chains in parallel. 'subsetCeldaList()' can subset the 'celda_list' object.

Examples

1
2
## Returns same result as running celdaGridSearch with "best.only = TRUE"
cgs.best = selectBestModel(celda.CG.grid.search.res)

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