map_z {CNPBayes} | R Documentation

## Calculate the maximum a posteriori estimate of latent variable assignment.

### Description

Calculate the maximum a posteriori estimate of latent variable assignment.

### Usage

    map_z(object)

### Arguments

`object` | an object of class MixtureModel.

### Value

map estimate of latent variable assignment for each observation

### Examples

         head(map_z(SingleBatchModelExample))

[Package CNPBayes version 1.12.0 Index]