sigma<- {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

    sigma(object) <- value

    sigma2(object)

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

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

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

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

    ## S4 replacement method for signature 'MultiBatchPooled,ANY'
    sigma2(object) <- value

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

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

    ## S4 replacement method for signature 'MultiBatchCopyNumberPooled,ANY'
    sigma2(object) <- value

    ## S4 replacement method for signature 'MultiBatchCopyNumberPooled'
    sigma(object) <- value

    ## 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.13.5 Index]