k {CNPBayes} | R Documentation

## Number of components.

### Description

This function retrieves the number of a priori components.

Updates the number of components and erases chains from a previous posteriorSimulation (if one was performed). Draws from prior to guess new starting values.

### Usage

    k(object)

    k(object) <- value

    ## S4 replacement method for signature 'Hyperparameters'
    k(object) <- value

    ## S4 replacement method for signature 'HyperparametersTrios'
    k(object) <- value

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

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

    ## S4 method for signature 'TrioBatchModel'
    k(object)

    ## S4 replacement method for signature 'TrioBatchModel'
    k(object) <- value

### Arguments

`object` | see `showMethods(k)`
`value` | An integer for the new number of components.

### Value

The number of components

### Examples

    k(SingleBatchModelExample) <- 2

[Package CNPBayes version 1.13.5 Index]