subsetCeldaList {celda} | R Documentation

## Subset celdaList object from celdaGridSearch

### Description

Select a subset of models from a 'celdaList' object generated by 'celdaGridSearch()' that match the criteria in the argument 'params'.

### Usage

    subsetCeldaList(celdaList, params)

### Arguments

`celdaList` | celdaList Object of class 'celdaList'. An object containing celda models returned from 'celdaGridSearch'.
`params` | List. List of parameters used to subset celdaList.

### Value

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.

### See Also

'celdaGridSearch()' can run Celda with multiple parameters and chains in parallel. 'selectBestModel()' can get the best model for each combination of parameters.

### Examples

    data(celdaCGGridSearchRes)
    resK5L10 <- subsetCeldaList(celdaCGGridSearchRes, params = list(K = 5,
        L = 10))

[Package celda version 1.2.4 Index]