modes {CNPBayes} | R Documentation

## Retrieve the modes from a model.

### Description

The iteration which maximizes log likelihood and log prior is found. The estimates for each parameter at this iteration are retrieved.

For a mixture model with K components, there are K! possible modes. One can permute the ordering of the modes and assign the permuted order to a MixtureModel derived class by this method.

### Usage

    modes(object)

    modes(object) <- value

    ## S4 method for signature 'MixtureModel'
    modes(object)

    ## S4 replacement method for signature 'MixtureModel'
    modes(object) <- value

### Arguments

`object` | a `MixtureModel`-derived class
`value` | a `list` of the modes. See `mode(object)` to obtain the correct format of the list.

### Value

A list of the modes of each parameter

### Examples

         modes(SingleBatchModelExample)

[Package CNPBayes version 1.12.0 Index]