subsetCeldaList {celda} | R Documentation |
Select a subset of models from a 'celdaList' object generated by 'celdaGridSearch()' that match the criteria in the argument 'params'.
subsetCeldaList(celdaList, params)
celdaList |
celdaList Object of class 'celdaList'. An object containing celda models returned from 'celdaGridSearch'. |
params |
List. List of parameters used to subset celdaList. |
A new 'celdaList' object containing all models matching the provided criteria in 'params'. If only one item in the 'celdaList' matches the given criteria, the matching model will be returned directly instead of a 'celdaList' object.
'celdaGridSearch()' can run Celda with multiple parameters and chains in parallel. 'selectBestModel()' can get the best model for each combination of parameters.
data(celdaCGGridSearchRes) resK5L10 <- subsetCeldaList(celdaCGGridSearchRes, params = list(K = 5, L = 10))