Learn R Programming

CNPBayes (version 1.2.2)

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

Arguments

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

Value

The number of components

Examples

Run this code
k(MarginalModelExample) <- 2

Run the code above in your browser using DataLab