sigma2 {CNPBayes} | R Documentation

## Retrieve the variances of each component and batch distribution

### Description

For a MarginalModel, this function returns a vector of variances. For a BatchModel, returns a matrix of size number of batches by number of components.

### Usage

    sigma2(object)

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

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

    ## S4 method for signature 'MultiBatchPooled'
    sigma2(object)

    ## S4 method for signature 'MultiBatchCopyNumberPooled'
    sigma2(object)

    ## S4 method for signature 'MultiBatchCopyNumberPooled'
    sigma(object)

### Arguments

`object` | see `showMethods(sigma2)`

### Value

A vector of length number of components or a matrix of size number of batches x number of components

### Examples

         sigma2(SingleBatchModelExample)

[Package CNPBayes version 1.12.0 Index]