Learn R Programming

em (version 1.0.0)

sstep: S-step of EM algorithm

Description

Given the posterior probability, generate a matrix to assign each individual to a class. The assignment is randomly sampled based on the posterior probability.

Usage

sstep(postpr)

Arguments

postpr

(`matrix()`)
The matrix of the posterior probability