Q_em: A mytoolbox function to compute the Q function of an EM...

Description Usage Arguments References Examples

View source: R/Q_em.R

Description

This function allows you to compute the Q function for a mixture (EM)

Usage

1
Q_em(theta, y, p.theta, p.0, mean_func, ...)

Arguments

theta

parameters of the mixture that need estimation

y

observations

p.theta

result from the expectation step (EM - probabilities)

mean_func

function to calculate the mean for each mixture. The result is a matrix where the number of columns is the number of element in the mixture.

References

Dempster, A. and Laird, N. and Rubin, D. (1977) Maximum likelihood from incomplete data via the EM algorithm. JRSS B 39 1–38.

Examples

1
Q_em()

ick003/SpTMixture documentation built on May 18, 2019, 2:32 a.m.