Learn R Programming

CNPBayes (version 1.2.2)

modes: 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
"modes"(object)
"modes"(object)
"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

Run this code
     modes(MarginalModelExample)

Run the code above in your browser using DataLab