selectBestModel {celda} | R Documentation |
Select the chain with the best log likelihood for each combination of tested parameters from a 'celdaList' object gererated by 'celdaGridSearch()'.
selectBestModel(celdaList)
celdaList |
Object of class 'celdaList'. An object containing celda models returned from 'celdaGridSearch()'. |
A new 'celdaList' object containing one model with the best log likelihood for each set of parameters. If only one set of parameters is in the 'celdaList', the best model will be returned directly instead of a 'celdaList' object.
'celdaGridSearch()' can run Celda with multiple parameters and chains in parallel. 'subsetCeldaList()' can subset the 'celdaList' object.
data(celdaCGGridSearchRes) ## Returns same result as running celdaGridSearch with "bestOnly = TRUE" cgsBest <- selectBestModel(celdaCGGridSearchRes)