EMg: EM solution of binary mixed Gaussian model.

Description Usage Arguments Value Examples

View source: R/EMg.R

Description

EM solution of binary mixed Gaussian model.

Usage

1
EMg(e1, X, t_max = 100)

Arguments

e1

a list consisting of the iterative initial value.

X

a data matrix or data.frame.

t_max

maximum number of iterations.

Value

a list consisting of mu ,sigma matrix and the The mixing ratio.

Examples

1
2
3
4
5
6
7
8
## Not run: 
e1<-list()
e1$mu<-list(c(5,62),c(6,85))
e1$lambda<-c(.3,.7)
e1$sigma<-list(diag(2),diag(2))
e_hat<-EMg(e1,as.matrix(faithful),100)

## End(Not run)

Shenshiny/StatComp21010 documentation built on Dec. 23, 2021, 10:22 p.m.