Learn R Programming

depmixS4 (version 0.2-1)

posterior: Posterior states/classes

Description

Return the posterior states for a fitted (dep-)mix object. In the case of a latent class or mixture model these are the class probabilities.

Usage

## S3 method for class 'depmix.fitted':
posterior(object)
	## S3 method for class 'mix.fitted':
posterior(object)

Arguments

object
A (dep-)mix object.

Value

  • posterior: Returns a data.frame with nstates(object) + 1 columns; the first column has the viterbi states, the other columns have the delta probabilities, see Rabiner (1989).

References

Lawrence R. Rabiner (1989). A tutorial on hidden Markov models and selected applications in speech recognition. Proceedings of IEEE, 77-2, p. 267-295.

Examples

Run this code
# add some later

Run the code above in your browser using DataLab