tau2 {CNPBayes} | R Documentation

## Accessor for the tau2 parameter in the hierarchical mixture model

### Description

The interpretation of `tau2` depends on whether `object` is a `MarginalModel` or a `BatchModel`. For `BatchModel`, `tau2` is a vector with length equal to the number of components. Each element of the `tau2` vector can be interpreted as the within-component variance of the batch means (`theta`). For objects of class `MarginalModel` (assumes no batch effect), `tau2` is a length-one vector that describes the variance of the component means between batches. The hyperparameters of `tau2` are `eta.0` and `m2.0`. See the following examples for setting the hyperparameters, accessing the current value of `tau2` from a `MixtureModel`-derived object, and for plotting the chain of `tau2` values.

### Usage

    tau2(object)

    ## S4 method for signature 'McmcChains'
    tau2(object)

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

### Arguments

`object` | see `showMethods(tau2)`

### Value

A vector of variances

### See Also

`Hyperparameters`

### Examples

    k(MultiBatchModelExample)
    tau2(MultiBatchModelExample)
    plot.ts(tau2(chains(MultiBatchModelExample)))

[Package CNPBayes version 1.13.5 Index]